sickdyd / react-search-autocomplete

A search box that filters the provided array of objects
https://sickdyd.github.io/react-search-autocomplete
MIT License
218 stars 82 forks source link

Clearing Text on firing onSelect Event #23

Closed rohail111 closed 2 years ago

rohail111 commented 3 years ago
  1. I want to clear my input text automatically when I select a value from the dropdown.
  2. Is there any way to give reference to this component or can we get the data by giving it Id and then get it by document.getElementbyId event? Kindly help I am stuck in it.
sickdyd commented 3 years ago

@rohail111 Hello!

You might want to take a look at this issue: https://github.com/sickdyd/react-search-autocomplete/issues/17

Codesandbox: https://codesandbox.io/s/distracted-fermat-zo6r8?file=/src/App.js

Let me know if it fixes your problem.

sank2000 commented 2 years ago

@rohail111 Hello!

You might want to take a look at this issue: #17

Codesandbox: https://codesandbox.io/s/distracted-fermat-zo6r8?file=/src/App.js

Let me know if it fixes your problem.

it fixed my issue

sickdyd commented 2 years ago

Close because fixed 🚀