Bug Description
When opening the search modal using the keyboard shortcut (Ctrl + K), the modal does not close properly with a single click on the close button.
Instead, multiple clicks are required and different UI states change on each click:
- First click restores the scrollbar/background
- Second click changes overlay appearance/brightness
- Third click switches only the modal to light mode
- Fourth click finally closes the modal completely
However, when opening the search modal normally by clicking the search bar manually, the issue does not occur.
Steps To Reproduce
- Open the website
- Press
Ctrl + K
- Click the close (
X) button repeatedly
- Observe inconsistent closing and theme behavior
Expected Behavior
- Modal should close completely with a single click
- Theme should remain synchronized across the page and modal
- Overlay/background state should reset correctly
Actual Behavior
- Multiple close clicks are required
- Theme partially updates
- Background and modal states become inconsistent
Possible Cause
Potential issue with:
- modal state cleanup
- keyboard shortcut event handling
- body scroll lock reset
- theme synchronization logic
Bug Description
When opening the search modal using the keyboard shortcut (
Ctrl + K), the modal does not close properly with a single click on the close button.Instead, multiple clicks are required and different UI states change on each click:
However, when opening the search modal normally by clicking the search bar manually, the issue does not occur.
Steps To Reproduce
Ctrl + KX) button repeatedlyExpected Behavior
Actual Behavior
Possible Cause
Potential issue with: