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
76 stars 16 forks source link

how can I make dropdown to be open by just clicking in the input #11

Closed moustafaart4muslim closed 5 years ago

moustafaart4muslim commented 5 years ago

Hi,

I want to make the dropdown to be open by just clicking inside the input, before typing text.. I mean to be open viewing all the items in the list

How to achieve this?

TerryZ commented 5 years ago

What do you want to display in the dropdown, the full result list?

moustafaart4muslim commented 5 years ago

yes, the full result list.

moustafaart4muslim commented 5 years ago

@TerryZ Reminder.

TerryZ commented 5 years ago

For currently version v-suggestion, only enter some text in the input element and the suggestion items showup, no way to show all the items in the list.

moustafaart4muslim commented 5 years ago

@TerryZ Thank you for your reply. Could you add an option allowing it?

By the way, I have notices that entering a dot input in the search field results in gets all results shown.

TerryZ commented 5 years ago

Ok, i will think about it.

moustafaart4muslim commented 5 years ago

Thank you.

TerryZ commented 5 years ago

Added full-list prop in v2.1.0 version, it set to config display full list when input element get focus

moustafaart4muslim commented 4 years ago

Thank you very much. Worked great.👍

But having small issue, When you focus in the input, it's working fine, start typing, filter works file, Now clear what you have typed, it should show the full list again when the input becomes clear, but it doesn't. To be able to show the full list again after start typing and then clearing the input, I have to click by the mouse outside the input then re-click inside it. @TerryZ

Again, thanks a lot.

TerryZ commented 4 years ago

Issue fixed on last release ( 2.2.0 ).

moustafaart4muslim commented 4 years ago

Sorry, It still shows the same behavior. When you focus in the input, it's working fine, start typing, filter works file, Now clear what you have typed, it should show the full list again when the input becomes clear, but it doesn't. To be able to show the full list again after start typing and then clearing the input, I have to click by the mouse outside the input then re-click inside it. @TerryZ