diff --git a/package.json b/package.json index 0c951f8..84db29b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elsci-io/ui-essential", - "version": "1.0.69", + "version": "1.0.70", "description": "Material Design components created for products built by elsci.io", "main": "src/index.js", "type": "module", diff --git a/src/TypeAheadInput/TypeAheadInput.js b/src/TypeAheadInput/TypeAheadInput.js index f7e77bd..9c506dc 100644 --- a/src/TypeAheadInput/TypeAheadInput.js +++ b/src/TypeAheadInput/TypeAheadInput.js @@ -47,6 +47,11 @@ export default class TypeAheadInput extends HTMLElement { this.#lastValidValue = value; } + /** @param {function|null} comparator */ + set comparator(comparator) { + this.#dropdownElement.comparator = comparator; + } + set options(options) { this.#dropdownElement.options = options; this.#filterDatalist();