onBlur event.target's value is undefined
See original GitHub issueif you have an onBlur on your <Select/>
event.target.value
is undefined. Inspecting the element the value is not set
Not sure if I’m doing something wrong but seems like it would be the most intuitive to have the value set on the input passed to onBlur. I see the hidden input storing the value but I don’t think it would make sense to have to track down that value
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:6 (1 by maintainers)
Top Results From Across the Web
On firing onBlur e.target() is undefined - Stack Overflow
But, I have a similar script working fine when firing an onChange event. Is this an expected behavior or how can I access...
Read more >event.target.name is undefined: What you need to know
You're likely getting this error because you're trying to get a name attribute on elements that don't have a name attribute. For example;...
Read more >[Solved]-React-why event target value is undefined-Reactjs
Coding example for the question React-why event target value is undefined-Reactjs.
Read more >Event.currentTarget - Web APIs | MDN
The currentTarget read-only property of the Event interface identifies the current target for the event, as the event traverses the DOM.
Read more >target Event Property - W3Schools
The target event property returns the element that triggered the event. ... Return Value: A reference to the object on which the event...
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
Hello -
In an effort to sustain the
react-select
project going forward, we’re closing old issues.We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our efforts towards the current major version.
If you aren’t using the latest version of
react-select
please consider upgrading to see if it resolves any issues you’re having.However, if you feel this issue is still relevant and you’d like us to review it - please leave a comment and we’ll do our best to get back to you!
+1