Skip to content

Weird bug on iOS Safari - Date range with caption element #970

@Lomkex1

Description

@Lomkex1

When implementing date range with caption element, on iOS (13) Safari browser - the start day selection is working correctly, but when trying to select end date, only onDayMouseEnter event is being registered and required second tap on the same element to count as a click, the issue is only present if there is at least one input family element (input, select, textfield, button) in the caption element component.

To Reproduce
https://codesandbox.io/s/react-day-picker-base-w8bh1
Visit the sandbox with iOS(13) device, first try to choose a date range without disabling custom caption, after that click the toggle button and try it again, this time it should work as it should.

Expected behavior
When choosing the end date the date should be set and not require second tap on the screen for safari to register it as a click.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR WelcomeWelcome to Pull RequestbugBug or Bug fixes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions