-
-
Notifications
You must be signed in to change notification settings - Fork 834
bug: "beforetoggle" and "toggle" events should have type ToggleEvent #6322
Copy link
Copy link
Closed
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
4.35
Current Behavior
ToggleEvent handlers are typed as a generic Event.
Expected Behavior
ToggleEvent handlers are typed as a Toggle Event.
See more:
System Info
Steps to Reproduce
Currently event.oldState and event.newState properties are not available due to the usage of a generic Event. Casting the Event as a ToggleEvent is necessary.
Code Reproduction URL
https://github.com/nborelli/popover-pop-bug/blob/main/src/components/my-component/my-component.tsx
Additional Information
I found this Reproduction URL on the previous related issue #5963.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels