darrenjennings / vue-autosuggest

🔍 Vue autosuggest component.
https://darrenjennings.github.io/vue-autosuggest
MIT License
621 stars 91 forks source link

[Feature Request] Add textarea support #174

Open Tam opened 4 years ago

Tam commented 4 years ago

Being able to use textareas in place of inputs would be really useful, especially where multi-line values are a possibility.

darrenjennings commented 4 years ago

Looked into it a bit, textarea works just fine if you're ok with the suggestion box below the entire textarea - but another component would need to be used if you wanted a typeahead dropdown in-line with the text itself.

For how to implement this in the library, we could use <component :is="inputProps.is", which seems to work from a functional perspective, but breaks the tests and I noticed some weird behavior with the @selected events not firing. PR's welcome if someone would like to take this task.

damirbogdanov commented 2 years ago

might be helpful for someone