Skip to content

fix: read the pressed submit button from the submit event - #640

Merged
imantsk merged 1 commit into
release/v4.1.2/corefrom
fix/safari-submit-action/core
Nov 27, 2026
Merged

imantsk merged 1 commit into
release/v4.1.2/corefrom
fix/safari-submit-action/core

Conversation

@imantsk

@imantsk imantsk commented Nov 27, 2026

Copy link
Copy Markdown
Member

Cherry-pick of the single fix commit from #633 (original author kept) onto the 4.1.2 release branch, without the unrelated commit that branch also carries. Fixes #606.

Changes

  • The edit form reads the pressed button from SubmitEvent.submitter instead of document.activeElement, so Save and Activate / Save and Deactivate work in Safari.
  • Pressing Enter in a text field performs a plain save instead of the first submit button's action.
  • E2E tests in tests/e2e/editor-submit-actions.spec.ts.

Verification

  • npm run build, ESLint and Stylelint pass locally; tsc shows no new errors.
  • E2E runs in CI.

@imantsk imantsk added the run-tests Trigger automated tests label Nov 27, 2026
@imantsk
imantsk merged commit c534fa0 into release/v4.1.2/core Nov 27, 2026
39 of 47 checks passed
@imantsk
imantsk deleted the fix/safari-submit-action/core branch November 27, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-tests Trigger automated tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants