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
Add onToggle event to details tag #8831
Conversation
docs/docs/reference-events.md
Outdated
@@ -338,3 +338,12 @@ string pseudoElement | |||
float elapsedTime | |||
``` | |||
|
|||
* * * | |||
|
|||
### Misc Events |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure where to add this event on the docs. Does not feel right in any of the current categories, that's why I added a new one, but still not sure if is the way to go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @gaearon for docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Misc events is probably fine for now.
@@ -331,6 +331,15 @@ function trapBubbledEventsLocal() { | |||
), | |||
]; | |||
break; | |||
case 'details': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be replicated in ReactDOMFiberComponent
which is a fork.
Looks fine to me but needs to be replicated in the Fiber version. |
You're right @sebmarkbage . Thanks for pointing that out!. I'll have some time today to replicate that on |
Thanks @aweary. Is there anything else I should do? |
Looks good to me. Can I ask you to test that Fiber version actually works? You can run |
Sure, I will do it asap. Thanks! |
Thanks for checking! |
Fixes #8761