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.

onBlur event.target's value is undefined

See original GitHub issue

if 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:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
bladeycommented, May 28, 2020

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!

0reactions
lommezcommented, Jul 30, 2019

+1

Read more comments on GitHub >

github_iconTop 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 >

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