react-search-autocomplete icon indicating copy to clipboard operation
react-search-autocomplete copied to clipboard

why list is opened by default if using inputSearchString

Open bora89 opened this issue 2 years ago • 2 comments

First of all thank you for that React component! There are not much alternatives!

Describe the bug Why list is opened by default if using inputSearchString & items props?

Codesandbox example inputSearchString

To Reproduce Steps to reproduce the behavior:

  1. Use inputSearchString
  2. supply items prop
  3. see that list is opened by default

Expected behavior if inputSearchString used - no need to open up the list. This "feature" has been introduced from version 7

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here. CleanShot 2023-03-24 at 02 42 57@2x

bora89 avatar Mar 23 '23 23:03 bora89

Ever got a solution for this?

Jitendra-PG avatar Jun 17 '24 23:06 Jitendra-PG

It seems we don't have a solution yet. To add more problems to it, if you are using NextJS (mine is v14) and trying to handle this behaviour via javascript like removing the dropdown list from the DOM, then you will see below issue:

image

collab-with-tushar-raj avatar Aug 29 '24 11:08 collab-with-tushar-raj