on-search-change event is not that useful
See original GitHub issueAs I’m using on-search-change
event, the main intention is to load options from the server. But it doesn’t suit the task. Here’s why.
on-search-change
event triggers:
- Page ready.
- Parent
selected
prop externally changed. - User clicked on component (triggers 2 times).
- User types any letter
load-options
event should trigger:
- User clicked on component (once).
- User types any letter
This is okeyish when you have one select on page. And not so much with ton of forms.
Hence, I humbly propose to deprecate on-search-change
and implement load-options
. And I’m willing to shoulder the task if help is wanted.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Working on react app and keep on getting the error Expected ...
Your Searchbox component isn't destructuring the props : const Searchbox = (searchfield, onSearchChange)=>.
Read more >[EuiComboBox] Selecting an option retriggers search with
So basically you want to check if the search value actually changed, and not fire onSearchChange event if so?
Read more >React Tutorials — The Basics. Controlled Forms - Medium
Note: the event listener must be called onSearchChange! Now still the MainContainer, where state is, create the searchUpdate function as ...
Read more >Getting started with React SyntheticEvent - LogRocket Blog
React SyntheticEvent is a unified cross-browser wrapper around the browser's native events that prevents browser inconsistencies.
Read more >onsearch Event - W3Schools
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dobromir-hristov
Like this, I guess? Template:
Script -> methods:
And you also can
and pass the data object from the select
@dobromir-hristov @asvae Fixed in v1.0.0