0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 05:02:57 +01:00
wagtail/client
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
..
scss Adjust margin-bottom of w-field__wrapper in drilldown component 2024-01-23 09:43:08 +00:00
src Explicitly set triggerElement when invoking save (with publish) button on pages 2024-01-24 08:17:37 +10:00
storybook Remove Safari 14 support in Wagtail admin – update browserslist and TypeScript (#11258) 2023-12-12 10:54:41 +00:00
tests Add unit tests & small fixes to OrderableController 2024-01-20 10:05:21 +10:00
extract-translatable-strings.js Ignore test files from extract-translatable-strings 2022-11-07 19:51:13 +10:00
package-lock.json Feature/field comment frontend (#6530) 2021-04-20 18:25:30 +01:00
README.md auto-format core markdown files (#8603) 2022-06-01 23:08:56 +10:00
tailwind.config.js Set the color-scheme property based on Wagtail theming support. Fix #11309 2024-01-22 16:04:05 +00:00
webpack.config.js Remove webpack rule for .woff 2023-11-09 08:57:56 +00:00

Wagtail client-side components

This library aims to give developers the ability to subclass and configure Wagtail's UI components.

Usage

npm install wagtail
import { Explorer } from 'wagtail';
// [...]
<Explorer />;

Development

# From the project root, start the webpack + styles compilation.
npm run start

You will also need:

Releases

The front-end is bundled at the same time as the Wagtail project. This package also aims to be available separately on npm as wagtail.