Bug: Clicking outside due date picker (Add Task) makes page unresponsive
Describe the bug When adding a task, if you open the date picker (calendar popover) to select a due date and then close it by clicking outside, the entire page becomes unresponsive. Clicks on any element (buttons, inputs, etc.) no longer work, effectively "freezing" the UI until the page is refreshed.
To Reproduce Steps to reproduce the behavior:
- Go to
http://localhost:5173/home - Click "Add Task" button to open the Add Task dialog
- Click on the "Due" date picker button to open the calendar popover
- Click anywhere outside to close it
- Try to click on any element.
- See that no clicks are registering, page becomes unresponsive
Expected behavior When the date picker calendar is closed by clicking outside, the page should remain fully interactive. All buttons, inputs, and other elements should continue to respond to clicks normally.
Video
https://github.com/user-attachments/assets/e936caff-c9b6-42af-a196-01421af71da8
Desktop (please complete the following information):
-
OS: macOS
-
Browser: Chrome
-
Version: Latest
-
[X] I want to work on this issue.
hey @its-me-abhishek ,
I am working on adding the Start field to the task panel, but I found an issue in date-picker which blocking me from testing the feature properly.
PR #280 removed the modal prop from the Popover component in date-picker.tsx. This change broke the date picker functionality. When I click on dates in the calendar, nothing happens and the date is not selected.
The date picker was working before this PR was merged. The issue is that without modal={true}, the Popover creates a focus trap conflict that prevents the calendar from responding to clicks.
Can you please revert PR #280 or reopen issue #279 so we can fix the date picker properly? Thanks