Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v8: Using keyboard to cancel in modal triggers primary action #5478

Closed
electricsheep opened this issue May 16, 2019 · 3 comments
Closed

v8: Using keyboard to cancel in modal triggers primary action #5478

electricsheep opened this issue May 16, 2019 · 3 comments

Comments

@electricsheep
Copy link
Contributor

Bug summary

If you have a one of the Save and publish option modals open (i.e. Schedule/Publish with descendants/Unpublish) and tab so that the Close button is focused, hitting Enter will trigger the primary action rather than closing the modal.

Specifics

  • Umbraco v8.1.0
  • Chrome 74

umbraco4

Steps to reproduce

  1. Open a page in the CMS
  2. Expand the menu next to Save and publish
  3. Click Unpublish
  4. Tab to the Close button on the modal
  5. Hit Enter key

Expected result

The modal is closed without unpublishing

Actual result

The page is unpublished

@kjac
Copy link
Contributor

kjac commented May 16, 2019

Yeah... this is annoying. PR #5463 aims to solve it.

@kjac
Copy link
Contributor

kjac commented May 16, 2019

And also #5461 which fixes the unintentional triggering of the secondary action in "Unsaved changes"

@nul800sebastiaan
Copy link
Member

Ah looks like these are both fixed now, just forgot to close the issue! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants