Skip to content

Allow setting or configuration which elements should not trigger the focus date #8985

@DarioG

Description

@DarioG

Provide a general summary of the feature here

It would be nice to be able to configure which elements will not trigger the calendar date range to be focused and not only buttons

We find sometimes that the UX of the calendar is not ideal. When the user wants to select a date range that goes across months by clicking on the forward of backward button it is easy to click on the header and the daterange is selected, making the experience not ideal. Check video

🤔 Expected Behavior?

We should be able to configure which element will trigger the date range selection

😯 Current Behavior

Only buttons inside of the calendar element ref will be ignore and not trigger the date range selection

💁 Possible Solution

Maybe we could add an argument to the CalendarStateOption to ignore all clicks in elements that are inside of the calendar container element ref and not only buttons

🔦 Context

Image

💻 Examples

No response

🧢 Your Company/Team

Walnut

🕷 Tracking Issue

There is not, since we worked this around

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions