react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

`DateRangePicker` reset is not working

Open sadeghbarati opened this issue 4 weeks ago • 1 comments

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

sadeghbarati avatar Nov 13 '25 11:11 sadeghbarati