Skip to content

DateRangePicker reset is not working #9180

@sadeghbarati

Description

@sadeghbarati

Provide a general summary of the issue here

DateRangePicker reset button is not working in Popover but working on RangeCalendar

  • Calendar

    • Standalone Calendar component ✅
    • With Popover (DatePicker) ✅
  • RangeCalendar

    • Standalone RangeCalendar component ✅
    • With Popover (DateRangePicker) ❌

By reset I mean this

const rangeCalendarState = use(RangeCalendarStateContext)!;

rangeCalendarState.setValue(null)

🤔 Expected Behavior?

It should reset the value just like the other Calendar components

😯 Current Behavior

The RangeCalendar inside Overlay component like Popover, reset button is only closing the overlay not resetting the value of the RangeCalendar

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

https://stackblitz.com/edit/vitejs-vite-qw6rj1ep

Version

1.13.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

Windows 11

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

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