question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dropdown: searchInput onChange fires Dropdown onChange as well

See original GitHub issue

Bug Report

Steps

  1. Create a Dropdown component
  2. Override its searchInput so that it provides a custom onChange callback.

Expected Result

Typing inside of Dropdown.SearchInput should only trigger its onChange.

Actual Result

Typing triggers input’s onChange first and then dropdown’s onChange callbacks.

Version

0.82.3

Testcase

https://codesandbox.io/s/40mx54ppr9

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
layershiftercommented, Sep 4, 2018

Thanks, awesome report! PR is coming.

1reaction
mic4aelcommented, Sep 4, 2018

Amazing work! You guys rock 🎸

Read more comments on GitHub >

github_iconTop Results From Across the Web

OnChange event fires too soon in dropdown / select input?
I've switched it to onblur but then it isn't fired until the user is done selecting and moves on, so I'd love to...
Read more >
Javascript onchange Event Tutorial to Get Dropdown Value of ...
... of application here:https://webgurucoder.com/javascript/javascript- onchange -event-tutorial-to-get- dropdown -value-of- select - input -fie...
Read more >
Other ways to trigger dropdown's onChange? It does not fire ...
tried doing .find() and .trigger('change') on the hidden input but no luck. even triggering change from the dropdown itself.
Read more >
126379 - Select (size=1) onChange not called using down ...
If a mouse/keyboard action > causes the selected item to change, then the onchange event should be fired. It > seems nonsensical to...
Read more >
OnChange not firing in published version, works fine in studio.
I have a dropdown that is pulling data from CDS (custom entity). It is manually selected by the user, and the 'OnChange' (for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found