You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the 4.5-beta.2 branch, open the entry edit page and attempt to save it and trigger a validation error.
“This {type} has been updated.” notice should show with a “Reload” button.
Try to use Ctrl/Cmd+S to save and continue editing.
Expected behavior
Once the notice has been dismissed, the shortcut should trigger the usual action. In the case of Ctrl/Cmd+S, it should trigger save and continue editing.
Actual behavior
Once the notice has been dismissed, the shortcut triggers the browser’s native Save As dialogue.
Craft CMS version
4.5-beta.2
PHP version
8
Operating system and version
Mac OS
Database type and version
MySQL
Image driver and version
n/a
Installed plugins and versions
n/a
The text was updated successfully, but these errors were encountered:
The notification is supposed to add a new UI layer when present, which would temporarily block any shortcuts registered to the previous UI layer. Without your PR, don’t the shortcuts resume once the notification is closed?
No, shortcuts don’t resume once the notification is closed (and no matter how you close it). They only resume if you reload the page. A notification has to contain a button (or input) tag for this behaviour to occur.
What happened?
Description
In the Control Panel, when
Craft.cp.notification
that contains abutton
(orinput
) is triggered, it prevents form shortcuts from working.Caused by: https://github.com/craftcms/cms/blob/develop/src/web/assets/cp/src/js/CP.js#L1536-L1541
Steps to reproduce
4.5-beta.2
branch, open the entry edit page and attempt to save it and trigger a validation error.Ctrl/Cmd+S
to save and continue editing.Expected behavior
Once the notice has been dismissed, the shortcut should trigger the usual action. In the case of
Ctrl/Cmd+S
, it should trigger save and continue editing.Actual behavior
Once the notice has been dismissed, the shortcut triggers the browser’s native Save As dialogue.
Craft CMS version
4.5-beta.2
PHP version
8
Operating system and version
Mac OS
Database type and version
MySQL
Image driver and version
n/a
Installed plugins and versions
n/a
The text was updated successfully, but these errors were encountered: