diff --git a/src/atoms/gv-autocomplete.js b/src/atoms/gv-autocomplete.js index 4a61088f..318d5d26 100644 --- a/src/atoms/gv-autocomplete.js +++ b/src/atoms/gv-autocomplete.js @@ -256,7 +256,8 @@ export class GvAutocomplete extends LitElement { render() { const options = this._getFilteredOptions(); let open = false; - if ((options && options.length > 0 && this._forceOpen) || this._hasNoOptionSlot()) { + + if (options && options.length > 0 && this._forceOpen) { open = this.minChars === 0 || this.value.trim().length >= this.minChars; } @@ -270,11 +271,16 @@ export class GvAutocomplete extends LitElement { options: true, open, }; + return html`