Skip to content

fix(date-picker): remove modal prop to prevent focus trap conflict#280

Merged
its-me-abhishek merged 1 commit intoCCExtractor:mainfrom
ShivaGupta-14:fix/date-picker-focus-trap
Dec 19, 2025
Merged

fix(date-picker): remove modal prop to prevent focus trap conflict#280
its-me-abhishek merged 1 commit intoCCExtractor:mainfrom
ShivaGupta-14:fix/date-picker-focus-trap

Conversation

@ShivaGupta-14
Copy link
Copy Markdown
Contributor

Description

  • Removed modal={true} from Popover component in date-picker.tsx.
  • Prevents nested focus trap conflict.
  • Fixes page becoming unresponsive after clicking outside date picker.

Root Cause: The modal={true} prop on the Popover created a nested focus trap inside the Dialog's existing focus trap. When the calendar closed, both focus traps competed for control, leaving the page in an unresponsive state.

Solution: Removing modal={true} allows the Popover to work within the parent Dialog's focus trap instead of creating its own, eliminating the conflict.

Fixes: #279

Checklist

  • Ran npx prettier --write . (for formatting)
  • Ran gofmt -w . (for Go backend)
  • Ran npm test (for JS/TS testing)
  • Added unit tests, if applicable
  • Verified all tests pass
  • Updated documentation, if needed

Additional Notes

Self-Review

I've reviewed my changes and confirm:

  • Date picker works correctly
  • No breaking changes to existing functionality

Video:

Screen.Recording.2025-12-15.at.12.57.26.AM.mov

- Removed modal={true} from Popover component in date-picker.tsx.
- Prevents nested focus trap conflict.
- Fixes page becoming unresponsive after clicking outside date picker.

Fixes: CCExtractor#279
@github-actions
Copy link
Copy Markdown

Thank you for opening this PR!

Before a maintainer takes a look, it would be really helpful if you could walk through your changes using GitHub's review tools.

Please take a moment to:

  • Check the "Files changed" tab
  • Leave comments on any lines for functions, comments, etc. that are important, non-obvious, or may need attention
  • Clarify decisions you made or areas you might be unsure about and/or any future updates being considered.
  • Finally, submit all the comments!

This helps make the review process smoother and gives us a clearer understanding of your thought process.

Once you've added your self-review, we'll continue from our side. Thank you!

@its-me-abhishek its-me-abhishek merged commit a11fbc6 into CCExtractor:main Dec 19, 2025
5 checks passed
@ShivaGupta-14 ShivaGupta-14 deleted the fix/date-picker-focus-trap branch December 23, 2025 18:48
ShivaGupta-14 added a commit to ShivaGupta-14/ccsync that referenced this pull request Dec 25, 2025
…CExtractor#280)

- Removed modal={true} from Popover component in date-picker.tsx.
- Prevents nested focus trap conflict.
- Fixes page becoming unresponsive after clicking outside date picker.

Fixes: CCExtractor#279
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Clicking outside due date picker (Add Task) makes page unresponsive

2 participants