vue-simple-suggest icon indicating copy to clipboard operation
vue-simple-suggest copied to clipboard

"select" event can return a null item even when the nullableSelect property is set to false

Open tbl0605 opened this issue 2 years ago • 0 comments

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:

  1. write something in the input field
  2. hover the suggestions with the mouse (but don't select a suggestion)
  3. press enter (the focus must still be in the input field)
  4. the setValueFromSuggestion function will retrieve an null/undefined item

Fortunately, the fix is quite simple.

Thierry.

tbl0605 avatar Sep 06 '23 13:09 tbl0605