toggle event throws error on details element #10928
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
scope: types
Description
When putting an
@toggle
event handler on a<details>
element, the type checking fails with this error:Expected Behaviour
Since
toggle
is a standard DOM event, I want to be able to hook up an event listener to that event.It works in the
1.x
versions ofvue-tsc
, and also works when Typescript isn't used.Workaround
When using the old
element.addEventListener('toggle', () => {});
syntax, there is no error.Reproduction
Minimal reproduction: https://github.com/Lenni009/vue-details-toggle-event-issue
The text was updated successfully, but these errors were encountered: