charliekassel / vuejs-autocomplete

Autocomplete component for Vue js
MIT License
135 stars 78 forks source link

how to disable search whenever i click the searchbox? #34

Open belgarad opened 6 years ago

belgarad commented 6 years ago

component starts searching whenever i click the input area. i want to start searching after at least 2 letters entered.

i use data list json as data source.

charliekassel commented 6 years ago

It's currently set up to search on click for data pre supplied to the component, but to search once you type something for an api request. My reasoning was that if we already have the data then it's basically working as a skinned select so why not show all the options when you focus. I'm ok with having this as a configurable option though, so would be happy to look at a PR.

belgarad commented 6 years ago

That would be great. Your component is very smart and easy to use. with couple new options it will be in every project. Excelent work.

savansavani commented 5 years ago

It's currently set up to search on click for data pre supplied to the component, but to search once you type something for an api request. My reasoning was that if we already have the data then it's basically working as a skinned select so why not show all the options when you focus. I'm ok with having this as a configurable option though, so would be happy to look at a PR.

Is this feature available? configurable @click event.