-
-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DayPickerInput: Click handling broken in IE #668
Comments
Ugh this is hitting again :/ Maybe a solution is hinted here: facebook/react#11405 (comment) If someone wants to jump in and try to fix this... I can't test on IE right now. |
This is fixed in v7.1.8. Please report back if you find again a similar issue, thanks! |
It's breaking in Firefox, https://codesandbox.io/s/x7n2qz1kq4 |
@akki199421 if |
@gpbl sorry, forgot to remove that, updated the code. If you change the month or year, the picker won't close. |
@gpbl any updates? |
It seems the 7.10 release broke DayPickerInput date and month selection for IE. The problem seems to come from the changes introduced in #598. This is due to IE(9-11) emitting blur events with
relatedTarget
being null, which causes the overlay to always hide on blur regardless if the click happens inside overlay (--> date and month selection won't work). This can be reproduced on the example page at http://react-day-picker.js.org/examples/input.See also facebook/react#3751
From my understanding,
focusout
handler wouldn't be much better for compatibility with Firefox support starting from v52 (https://developer.mozilla.org/en-US/docs/Web/Events/focusout). Not sure if there is any clean workaround apart from rolling back or using a global event handler.The text was updated successfully, but these errors were encountered: