You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason why the former doesn't work is because the click away code is evaluated immediately when the element is mounted.
This should not be the case and can be resolved by wrapping the code inside the directive with a closure:
<button @click="show =true">
<inputv-if="show"v-if-clickaway="() => show = false" />
It would be nice if this could be done internally so one doesn't have to remember this hack around the issue.
The text was updated successfully, but these errors were encountered:
It seems the following should work but it does not:
This works:
The reason why the former doesn't work is because the click away code is evaluated immediately when the element is mounted.
This should not be the case and can be resolved by wrapping the code inside the directive with a closure:
It would be nice if this could be done internally so one doesn't have to remember this hack around the issue.
The text was updated successfully, but these errors were encountered: