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

When the search property is set to false getting 'TypeError: iterator method is not callable' error

Open hasanhasanov opened this issue 2 years ago • 1 comments

When the search property is set to false getting 'TypeError: iterator method is not callable' error

TSX

<SelectDropdown search={false} ...

Error

TypeError: iterator method is not callable

NOT: There is no problem if the search property is never used or set to true

hasanhasanov avatar Sep 29 '23 13:09 hasanhasanov

I solved the above error as follows. But it still better be fixed.

search={dropdown.isSearchable ? true : undefined}

It works if undefined is given instead of false

hasanhasanov avatar Oct 09 '23 12:10 hasanhasanov