Close the userbar when clicking its toggle. Fix #9342 (#9808)

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>

Fixes https://github.com/wagtail/wagtail/issues/9342
pull/9816/head
Albina 2022-12-27 16:36:05 +01:00 zatwierdzone przez GitHub
rodzic 4246c0b703
commit 5eb2064574
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
4 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -50,6 +50,7 @@ Changelog
* Fix: Ensure that short content pages (such as editing snippets) do not show an inconsistent background (Sage Abdullah)
* Fix: Fix horizontal positioning of rich text inline toolbar (Thibaud Colas)
* Fix: Ensure that `DecimalBlock` correctly handles `None`, when `required=False`, values (Natarajan Balaji)
* Fix: Close the userbar when clicking its toggle (Albina Starykova)
* Docs: Add custom permissions section to permissions documentation page (Dan Hayden)
* Docs: Add documentation for how to get started with contributing translations for the Wagtail admin (Ogunbanjo Oluwadamilare)
* Docs: Officially recommend `fnm` over `nvm` in development documentation (LB (Ben) Johnston)
@ -101,6 +102,7 @@ Changelog
* Fix: Support text resizing in workflow steps cards (Ivy Jeptoo)
* Fix: Use the correct padding for autocomplete block picker (Umar Farouk Yunusa)
* Fix: Fix horizontal positioning of rich text inline toolbar (Thibaud Colas)
* Fix: Close the userbar when clicking its toggle (Albina Starykova)
4.1.1 (11.11.2022)

Wyświetl plik

@ -201,7 +201,7 @@ document.addEventListener('DOMContentLoaded', () => {
if (
event.relatedTarget == null ||
(event.relatedTarget &&
event.relatedTarget.closest('.wagtail-userbar-items'))
event.relatedTarget.closest('.wagtail-userbar-nav'))
) {
return;
}

Wyświetl plik

@ -21,3 +21,4 @@ depth: 1
* Support text resizing in workflow steps cards (Ivy Jeptoo)
* Use the correct padding for autocomplete block picker (Umar Farouk Yunusa)
* Fix horizontal positioning of rich text inline toolbar (Thibaud Colas)
* Close the userbar when clicking its toggle (Albina Starykova)

Wyświetl plik

@ -69,6 +69,7 @@ This feature was developed by Sage Abdullah.
* Ensure that short content pages (such as editing snippets) do not show an inconsistent background (Sage Abdullah)
* Fix horizontal positioning of rich text inline toolbar (Thibaud Colas)
* Ensure that `DecimalBlock` correctly handles `None`, when `required=False`, values (Natarajan Balaji)
* Close the userbar when clicking its toggle (Albina Starykova)
### Documentation