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
During the Zelda release we ran into issues with modals and their interaction with validations and spin-buttons. One of the main problems is that hitting the confirm button will raise an action and then close the modal immediately, not taking into consideration async tasks or allowing the close to be halted.
Review of modal usage and desired behaviour
Switch to closure-actions and return promises from modal controller actions so that closing of modals can happen after async tasks and be dependent on success/failure
Fix auth regressions after ESA 1.0 upgrade #6061 re-instated the re-authentication modal but I realised there's an issue with it not saving the post after re-authenticating. It would be good to add that feature if the improved control structure allows it.
Modals should switch the keymaster scope to disable globals shortcuts and provide a way to register their own shortcuts (currently always switches to 'modal' scope - can we offer a way to customise?)
The text was updated successfully, but these errors were encountered:
refs TryGhost#5798, closesTryGhost#5018
- adds new `gh-fullscreen-modal` component - modals are now specified in-context so that they can have deeper interaction with their surrounding components/controller/route, i.e. a modal component can be a thin confirm/deny wrapper over the underlying controller action keeping all context-sensitive logic in one place
- adds spin-buttons to all modals with async behaviour
- adds/improves behaviour of inline-validation in modals
- improves re-authenticate modal to properly handle validation and authentication errors
During the Zelda release we ran into issues with modals and their interaction with validations and spin-buttons. One of the main problems is that hitting the confirm button will raise an action and then close the modal immediately, not taking into consideration async tasks or allowing the close to be halted.
The text was updated successfully, but these errors were encountered: