react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

onBlur not called on Shift+Tab from input field

Open ConcernedHobbit opened this issue 2 years ago • 0 comments

Describe the bug onBlur is not called when focus leaves the input field with Shift+Tab.

To Reproduce Steps to reproduce the behavior:

  1. Pass onBlur a function (e.g. () => { console.log('Blurred') })
  2. Focus the input field
  3. Press Shift+Tab to move focus to the previous element
  4. 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 image (Popper should have collapsed as focus moved to another element)

Desktop (please complete the following information):

  • OS: Windows 10
  • Firefox 91, Chrome 103

ConcernedHobbit avatar Jun 30 '22 10:06 ConcernedHobbit