This seems like a small issue but I still would love to bring some attention to it.
The onSearchButtonPress callback is only called when some text is actually typed in the searchbar.
For consistency's sake, I would love it if, even if the input is empty, the callback would still be called.
In my case, the callback is a keyboard dismissal. To give an example, in Instagram, if you press the search button without any input, it also just dismisses the keyboard. So I'm hoping to get the same kind of consistency.
Hi guys
This seems like a small issue but I still would love to bring some attention to it.
The
onSearchButtonPress
callback is only called when some text is actually typed in the searchbar. For consistency's sake, I would love it if, even if the input is empty, the callback would still be called.In my case, the callback is a keyboard dismissal. To give an example, in Instagram, if you press the search button without any input, it also just dismisses the keyboard. So I'm hoping to get the same kind of consistency.
Thanks for the great component!