Pass current value in `onBlur` event
See original GitHub issueAs discussed in erikras/redux-form#82
When you listen to the onBlur
event on input fields, e.target.value
will contain the value of the input which can be useful. This behaviour doesn’t work in react-select
because the DOM node being blurred is the search input, not the field itself.
We could hack around this and set e.target.value
before firing the event handler - I’m not absolutely positive this would have no unintended side effects, but it seems safe.
Anyone want to weigh in on this?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:8
- Comments:10
Top Results From Across the Web
How to pass input text as parameter to javascript onblur event?
Try to use, onblur="checkDateFormat(this.value)". Instead of onblur="checkDateFormat(this.date_t.value)".
Read more >Field - Redux Form
The function is given the fields current value, all other form values, the props passed to the form, and the name of field...
Read more >.blur() | jQuery API Documentation
An object containing data that will be passed to the event handler. ... A function to execute each time the event is triggered....
Read more >Element: blur event - Web APIs | MDN
There are two ways of implementing event delegation for this event: by using the focusout event, or by setting the useCapture parameter of ......
Read more >Angular 10 (blur) Event - GeeksforGeeks
In app.component.html make an input element and set blur event. Serve the angular app using ng serve to see the output. Example 1 ......
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
causes problems with redux-form
Assuming resolved in v2. Bump if needs to be reopened.