0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00
wagtail/client/src
Alex Morega c4ef290859 Explicitly set triggerElement when invoking save (with publish) button on pages
Fixes #11420

Two issues existed;
1. Safari will not set `document.activeElement` as expected in all other browsers, instead, when a button is clicked it will keep the activeElement as `body`. This meant that the reset of the disabled button (before the confirm triggers a click) was not working.
2. Visually the button still had the loading spinner due to w-progress controller having triggered the loading visuals, this did not block the behaviour but looked broken.

See Safari behaviour docs:
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#clicking_and_focus
- https://bugs.webkit.org/show_bug.cgi?id=22261
2024-01-24 08:17:37 +10:00
..
api Update all snapshots to Jest 29 format 2023-07-13 07:51:26 +01:00
components Roll out new theme tokens where appropriate 2024-01-22 16:04:06 +00:00
config Add view and client script for Dismissibles 2022-10-17 17:39:37 +01:00
controllers Clean up unfinished aspects of DrilldownController 2024-01-23 09:22:30 +00:00
entrypoints Explicitly set triggerElement when invoking save (with publish) button on pages 2024-01-24 08:17:37 +10:00
includes Move accessibility checker inside the editor (#11478). Fix #10136 2024-01-23 08:15:34 +00:00
plugins Update relevant color declarations to use theme-agnostic color tokens 2023-04-19 13:38:23 +01:00
tokens Update color variables documentation and tests 2024-01-22 16:04:06 +00:00
utils Move slugify/urlify to discrete utils & remove usage of window.unicodeSlugsEnabled 2023-10-31 13:56:19 +00:00
custom.d.ts Define gettext functions in an importable module 2022-04-01 17:01:26 -04:00
index.test.js Move legacy sidebar JS into a separate module 2021-05-17 11:48:29 +01:00
index.ts Migrated initDismissibles to a Stimulus controller w-dismissible 2023-04-17 23:27:24 +10:00