How to use the accessible-autocomplete.enhanceSelectElement function in accessible-autocomplete

To help you get started, we’ve selected a few accessible-autocomplete examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alphagov / govuk-country-and-territory-autocomplete / src / index.js View on Github external
opts.additionalSynonyms = (opts.additionalSynonyms || []).concat(htmlAdditionalSynonyms)

  opts.source = opts.source || openregisterPickerEngine({
    additionalEntries: opts.additionalEntries,
    additionalSynonyms: opts.additionalSynonyms,
    url: opts.url,
    fallback: opts.fallback
  })

  opts.templates = opts.templates || {
    inputValue: inputValueTemplate,
    suggestion: suggestionTemplate
  }

  enhanceSelectElement(opts)
}

accessible-autocomplete

An autocomplete component, built to be accessible.

MIT
Latest version published 3 months ago

Package Health Score

86 / 100
Full package analysis

Popular accessible-autocomplete functions