diff --git a/src/components/inputhints/index.js b/src/components/inputhints/index.js index 23bba3cfe..9e8f5fad6 100644 --- a/src/components/inputhints/index.js +++ b/src/components/inputhints/index.js @@ -27,9 +27,11 @@ import "./style.scss"; * @param {HTMLInputElement} $input Input field * @param {Array|HintCallback} hints Hints or a callback to generate hints * @param {(value: string) => void} onSelect Callback to call when a hint is selected + * @param {object} [options] + * @param {boolean} [options.dynamic] Regenerate hints when input changes * @returns {{getSelected: ()=>HTMLLIElement, container: HTMLUListElement}} */ -export default function inputhints($input, hints, onSelect) { +export default function inputhints($input, hints, onSelect, options = {}) { /**@type {HTMLUListElement} */ const $ul =