vue-simple-suggest
vue-simple-suggest copied to clipboard
"select" event can return a null item even when the nullableSelect property is set to false
Hi, Sometimes the "select" event doesn't return a non-null element when used this way:
<vue-simple-suggest
@select="setValueFromSuggestion"
...
To reproduce the problem with a vue-simple-suggest component:
- write something in the input field
- hover the suggestions with the mouse (but don't select a suggestion)
- press enter (the focus must still be in the input field)
- the setValueFromSuggestion function will retrieve an null/undefined item
Fortunately, the fix is quite simple.
Thierry.