(next: boolean)
| 157 | // latest committed value. Reverse the boundary normalization so |
| 158 | // the calendar highlights the correct inclusive dates. |
| 159 | const handleOpenChange = (next: boolean) => { |
| 160 | if (next) { |
| 161 | setSelection(fromBoundary(value)); |
| 162 | } |
| 163 | setOpen(next); |
| 164 | }; |
| 165 | |
| 166 | // Compare in the same coordinate space (raw calendar dates) so |
| 167 | // re-selecting the identical range doesn't enable Apply. |
no test coverage detected