Skip to content

[#326] - Prevent focus on background element while Modal is open#349

Closed
noahhefner wants to merge 1 commit intodullage:developfrom
noahhefner:develop
Closed

[#326] - Prevent focus on background element while Modal is open#349
noahhefner wants to merge 1 commit intodullage:developfrom
noahhefner:develop

Conversation

@noahhefner
Copy link
Copy Markdown

Hello and thank you for creating Flatnotes! I use it constantly in my homelab as my primary note taking system.

Opening this PR as a suggestion to address bug #326 where background elements can be focused while a modal is open. The implementation is pretty straightforward; a data-inert-scope attribute has been added to elements that should be non-focusable while a Modal is open. When a Modal is opened, a watch function will add the inert attribute to those elements, preventing them from being focused. When a Modal is closed, the inert attribute is removed.

@noahhefner noahhefner closed this Feb 17, 2026
MrRubberDucky added a commit to Rubberverse/flatnotes that referenced this pull request Apr 11, 2026
I would've done it via git so at least commit authors would be there but I'm having too much of a skill issue. maybe eventually I'll learn it

Signed-off-by: Mr. Rubber Ducky <contact@rubberverse.xyz>
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.

1 participant