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

Change dialog invoke actions to close rather than cancel #951

Closed
wants to merge 0 commits into from

Conversation

lukewarlow
Copy link
Collaborator

Fixes #937 and #938

| `<dialog>` | `'toggleModal'` | If the `<dialog>` is not `open`, call `showModal()`, otherwise cancel the dialog |
| `<dialog>` | `'cancel'` | If the `<dialog>` is `open`, cancel the dialog |
| `<dialog>` | `'auto'` | If the `<dialog>` is not `open`, call `showModal()`, otherwise close the dialog |
| `<dialog>` | `'toggleModal'` | If the `<dialog>` is not `open`, call `showModal()`, otherwise close the dialog |
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the auto and toggleModal (and toggle see #936 ) actions also use button value for the returnValue when closing?

@lukewarlow lukewarlow closed this Mar 27, 2024
@lukewarlow lukewarlow force-pushed the invokers-dialog-cancel branch from d484bdb to 636aeee Compare March 27, 2024 17:45
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

Successfully merging this pull request may close these issues.

[invokers] Should invokers toggling a dialog close or cancel?
1 participant