jeremydavidson / react-search-panel

MIT License
1 stars 2 forks source link

Feature: Include an optional onFocus event #33

Closed NickSchimek closed 2 years ago

NickSchimek commented 2 years ago

I have a use case where the options set for the search panel become out of date, yet I don't really want to make an api call and refresh the data unless the user is going to use the search panel.

We currently show all options when the user focuses the element, I'd like the ability to update the options (if needed) when the user focuses on the panel. Additionally this will allow to us to only load the data if the user intends to search on the field.