vue3-simple-typeahead
vue3-simple-typeahead copied to clipboard
Active_node is null when list isn't open and I hit arrow down or up
When using the component, if I haven't started typing anything and I hit arrow up/down I am getting these errors in console. Is there a null check missing on the active_node or is it user error? Thanks!
This is how I am using the component:
<SimpleTypeahead
:id="inputId"
@keyup.enter="submit"
@onFocus="inputFocused"
:selectOnTab="false"
:class="[$style.autoSuggestItem, { [$style.fullWidthInput]: isFullWidth }]"
:items="suggestions"
:minInputLength="1"
:itemProjection="
(item) => {
return item.name;
}
"
@selectItem="setSelectedItem"
@onInput="inputChanged"
:placeholder="showItemPlaceholder ? itemPlaceholder : ''"
></SimpleTypeahead>
Uncaught TypeError: active_node is null
scrollSelectionIntoView vue3-simple-typeahead.esm.js:114
setTimeout handler*scrollSelectionIntoView vue3-simple-typeahead.esm.js:110
onArrowDown vue3-simple-typeahead.esm.js:98
../../node_modules/vue3-simple-typeahead/dist/vue3-simple-typeahead.esm.js/render/_cache[4]< vue3-simple-typeahead.esm.js:234
Uncaught TypeError: active_node is null
scrollSelectionIntoView vue3-simple-typeahead.esm.js:114
setTimeout handler*scrollSelectionIntoView vue3-simple-typeahead.esm.js:110
onArrowUp vue3-simple-typeahead.esm.js:106
../../node_modules/vue3-simple-typeahead/dist/vue3-simple-typeahead.esm.js/render/_cache[5]< vue3-simple-typeahead.esm.js:234
Yeah, I also got this error. Please make me a contributor and I will fix this as well as this one: https://github.com/frikinside/vue3-simple-typeahead/issues/25
I got the same error as well @ewalpole did you find a way around this?