Skip to content

Fix CTRL/CMD+S on Filament v3 create/edit pages - #20333

Open
tominal wants to merge 1 commit into
filamentphp:3.xfrom
tominal:fix/v3-modal-aria-modal-on-hidden-element
Open

Fix CTRL/CMD+S on Filament v3 create/edit pages#20333
tominal wants to merge 1 commit into
filamentphp:3.xfrom
tominal:fix/v3-modal-aria-modal-on-hidden-element

Conversation

@tominal

@tominal tominal commented Aug 5, 2026

Copy link
Copy Markdown

Description

Filament v3.3.53 received a frontend rebuild which contained a change in mousetrap.

Full description here: danharrin/alpine-mousetrap#14

TL;DR: All closed modals trip the mousetrap getOpenModal() check, so CTRL/CMD+S is failing since 3.3.53.

Visual changes

N/A

Functional changes

CTRL/CMD+S opens the native browser save dialog instead of triggering mousetrap to execute the save operation on create/edit pages.

This fix matches how v4 and v5 modals are built in HTML which matches what mousetrap is currently built to check.

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

Remove the aria attributes from the top-level div:

image

And move them into the child div that controls the visibility of the modal:

image

@danharrin danharrin added bug Something isn't working pending review labels Aug 5, 2026
@danharrin danharrin added this to the v3 milestone Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working pending review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants