-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
onChange event is not fired on Safari browser #288
Comments
I cannot reproduce it, it's working fine for me (macOS 10.15.5, Safari 13.1.1.). |
@podlesny are you using the DatePicker inside a modal/dialog, perhaps from MaterialUI? i'm having the same issue with the DatePicker inside the MaterialUI Dialog
@wojtekmaj can you check this one? |
@podlesny Fixed the safari bug using #274 (comment) code and then making this change to the condition: ...
_this.onOutsideAction = event => {
if (
_this.wrapper &&
!_this.wrapper.contains(event.target) &&
!event.target.className.indexOf('react-calendar') // fix for safari calendar bug
) {
_this.closeCalendar()
event.stopPropagation()
}
} |
@pedrofsantoscom some time
Here is how I fixed this
|
Had the same bug both in mobile Safari (iOS 14.4) and desktop Safari (14.0.1). @pedrofsantoscom fix worked perfectly fine, thank you! For me the calendar worked, when I opened it with the calendar icon. It did not work when I opened it through clicking on the date numbers. This really needs an official fix. |
I tested on Safari 14.0.1 and onChange works fine: Nagranie.z.ekranu.2021-03-3.o.08.59.07.movand calendar opens on input click just fine as well: Nagranie.z.ekranu.2021-03-3.o.08.59.55.movso I don't know how to reproduce this issue. |
For me the bug was not the opening of the popup, this is working fine. The bug was that it was not possible to choose a value properly. When clicking on a day, the popup closes but the onChange event is not triggered, thus it was not possible to retrieve the date. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days. |
This issue was closed because it has been stalled for 14 days with no activity. |
When I click on datepicker and choose a date, onChange event is not fired in Safari, however in Chrome everything works as expected. I don't have any errors in console. Implementation is similar to this
The text was updated successfully, but these errors were encountered: