react-native-element-dropdown icon indicating copy to clipboard operation
react-native-element-dropdown copied to clipboard

Persist search query in search bar

Open kurucaner opened this issue 8 months ago • 0 comments

I am using your dropdown library in my React Native app, which includes a search bar. When I select an item from the dropdown, the dropdown closes as expected. However, when I reopen the dropdown, the search query in the search bar is reset. I would like the search query to persist when reopening the dropdown.

Steps to Reproduce:

  • Open the dropdown.
  • Enter a search query in the search bar.
  • Select an item from the dropdown (dropdown closes).
  • Reopen the dropdown.

Expected Behavior: When the dropdown is reopened, the search query should remain in the search bar.

Actual Behavior: When the dropdown is reopened, the search query is cleared from the search bar.

Any advice on how to achieve this behavior?

kurucaner avatar Jun 15 '24 22:06 kurucaner