Skip to content
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

Fixes the focus out event in IE11 #1524

Merged
merged 13 commits into from Feb 7, 2019
2 changes: 1 addition & 1 deletion src/components/DateRangePicker.jsx
Expand Up @@ -248,7 +248,7 @@ class DateRangePicker extends React.PureComponent {
//
// We handle both situations here by using the ` || ` operator to fallback
// to *event.target** when **relatedTarget** is not provided.
ljharb marked this conversation as resolved.
Show resolved Hide resolved
if (this.dayPickerContainer.contains(event.relatedTarget || event.target)) return;
if (this.dayPickerContainer.contains(event.relatedTarget || event.target) || this.dayPickerContainer.contains(event.target)) return;
ljharb marked this conversation as resolved.
Show resolved Hide resolved
this.onOutsideClick(event);
}

Expand Down