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

Fix day picker for IE 11 (Also see Issue #668) #691

Merged
merged 4 commits into from
Apr 17, 2018
Merged

Conversation

smesgr
Copy link
Contributor

@smesgr smesgr commented Apr 9, 2018

Fixes Day Picker IE 11 issue #668 for me.

Tested on the following browsers:
IE 11.0.56 @ Windows 10
Chrome/Chromium 65.0.3325.181 @ Windows 10, Ubuntu 18.04 LTS
Chrome 65.0.3325.109 @ Android 4.4
Edge 41.16299.248.0 @ Windows 10
Opera 52.0.2871.40 @ Windows 10
Firefox 59.0.2 @ Windows 10, Ubuntu 18.04 LTS

The proposed solution did not work for me. Therefore try to workaround this issue for IE by using setTimeout.

@smesgr
Copy link
Contributor Author

smesgr commented Apr 9, 2018

PS. can't silence eslint compelitly because of IE11 detection routine. :-(

@gpbl
Copy link
Owner

gpbl commented Apr 13, 2018

Thanks a lot @smesgr 🙏🏽Going to check it soon once I've prepared my Window virtual machine :)

@jimniels
Copy link

jimniels commented Apr 16, 2018

Just upgraded to latest 7.x release and seeing similar issue where you can't even pick a date in IE11. Ran the PR from @smesgr locally in an IE11 VM and it worked as expected.

iefix

if (this.hideTimeout) {
this.hideTimeout = setTimeout(() => {
this.hideDayPicker();
this.hideTimeout = null;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't setting this.hideTimeout to null cause a memory leak here?

@gpbl gpbl mentioned this pull request Apr 17, 2018
@gpbl gpbl merged commit 10f15e1 into gpbl:master Apr 17, 2018
@jimniels
Copy link

FWIW: until there's a new release fixing this, you can roll back to version 7.0.7 for support in IE (as mentioned in #668)

@smesgr
Copy link
Contributor Author

smesgr commented Apr 20, 2018

Great Thanks

@gpbl
Copy link
Owner

gpbl commented Apr 20, 2018

I’m adding some more tests before releasing this.

gpbl added a commit that referenced this pull request May 6, 2018
This undo #700 and #691 as the changes weren’t working as expected. Should also fix #712 and #706
kimamula pushed a commit to kimamula/react-day-picker that referenced this pull request Aug 17, 2022
This undo gpbl#700 and gpbl#691 as the changes weren’t working as expected. Should also fix gpbl#712 and gpbl#706
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants