Vue 2.7 - Custom directive applied externally to functional component #9096
Unanswered
tibineagu
asked this question in
Help/Questions
Replies: 2 comments 1 reply
-
Can you provide a minimum reproduction such as a playground or git repository? |
Beta Was this translation helpful? Give feedback.
1 reply
-
sorry about the spam but just hoping someone can provide some clarity on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Any idea how (or if) a custom directive can be applied from the parent to a custom functional component?
My code looks something like:
The directive code never gets executed, none of the hook functions are triggered.
This happens with functional components built with either
<template functional>
orrender
functions.EDIT - please see reproduction at codesandbox link
Beta Was this translation helpful? Give feedback.
All reactions