TerryZ / v-suggest

A Vue2 plugin for input content suggestions, support using keyboard to navigate and quick pick, it make use experience like search engine input element
https://terryz.github.io/vue/#/suggest
MIT License
75 stars 16 forks source link

Selected should return entire item vs just text #1

Closed rlightner closed 5 years ago

rlightner commented 6 years ago

When selecting an item, shouldn't the row be returned / bound vs the selected text?

TerryZ commented 6 years ago

In last release, the return data only selected the plain text of the item with v-model attribute.

next release will add values event to return selected row raw data

TerryZ commented 5 years ago

values event add in last release.

tikvarova commented 4 years ago

Hello TerryZ,

At the moment the values emits properly, but howto emit empty row of date, when clear input field via "X" button!?

10X in advance!

TerryZ commented 4 years ago

@tikvarova When click 'x' icon to clear input element value, expect to emit empty row data, is that correct?