VUE/TS: Using @before-leave hook for <transition-group>: "not assignable to type "Hook<(el: Element) => void> | undefined" #10477
Unanswered
DevKame
asked this question in
Help/Questions
Replies: 1 comment 3 replies
-
function onBeforeLeave(element: Element) {
const el = element as HTMLElement;
el.style.width = ...
el.style.height = ...
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to try out my first transition wihtout using css classes, for that i defined this kind of template:
The corresponding function is this:
The @before-leave hook is highlighted red and shows this error on hovering:

Again no research had even a similar issue to that topic. Where is the mistake and why?
Beta Was this translation helpful? Give feedback.
All reactions