react-datepicker
react-datepicker copied to clipboard
onBlur not called on Shift+Tab from input field
Describe the bug onBlur is not called when focus leaves the input field with Shift+Tab.
To Reproduce Steps to reproduce the behavior:
- Pass
onBlur
a function (e.g.() => { console.log('Blurred') }
) - Focus the input field
- Press Shift+Tab to move focus to the previous element
- Observe that the function is not called
onBlur does get called when clicking outside the input field or pressing Esc.
Expected behavior onBlur is called when focus leaves the element.
Screenshots
(Popper should have collapsed as focus moved to another element)
Desktop (please complete the following information):
- OS: Windows 10
- Firefox 91, Chrome 103