mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 12:53:13 +03:00
4c5144cb61
no issue The close button in the unsaved changes modal used the `@close` action directly compared to the "Stay" button which used `(fn @close false)`. The close button version without explicit arguments resulted in the first argument being a `PointerEvent` instance which if checked as a modal return value as `if (shouldClose)` would evaluate as truthy therefore matching the "Leave" behaviour instead of the "Stay" behaviour. - changed modal to explicitly call `(fn @close false)` when the close button is clicked - updated design settings route to have an explicit `shouldLeave === true` check so default behaviour is always "Stay" |
||
---|---|---|
.. | ||
members | ||
settings | ||
authentication-test.js | ||
content-test.js | ||
custom-post-templates-test.js | ||
dashboard-test.js | ||
editor-test.js | ||
error-handling-test.js | ||
launch-flow-test.js | ||
members-activity-test.js | ||
members-test.js | ||
offers-test.js | ||
password-reset-test.js | ||
setup-test.js | ||
signin-test.js | ||
signup-test.js | ||
staff-test.js |