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

<details> element does not fire a beforetoggle event. #9743

Open
keithamus opened this issue Sep 15, 2023 · 0 comments
Open

<details> element does not fire a beforetoggle event. #9743

keithamus opened this issue Sep 15, 2023 · 0 comments
Labels
addition/proposal New features or enhancements topic: events

Comments

@keithamus
Copy link
Contributor

popover currently fires a beforetoggle event an asynchronous tick before the toggle event. This is useful for a few use case (cancelling, kicking off work like animations). It would be nice for <details> to do the same, as <details> already has a toggle event.

During the triage meeting at TPAC, while discussing #9733 we looked into this and there are some constraints to consider: namely that it <details open during parse should not trigger a cancellable beforetoggle event. Otherwise it should be cancelable, like popover and (soon to be) <dialog>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements topic: events
Development

No branches or pull requests

2 participants
@keithamus and others