-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elements with a v-if tag are not evaluated as a descendant. #14
Comments
We had the same issue, we found the work around by using v-show instead of v-if tags |
@astarrh @aralzaim7 Can you try removing this return and see if that works https://github.com/VinceG/vue-click-away/blob/master/index.js#L37 |
@VinceG Sorry, I'm having trouble replicating this issue now. The example I pasted is working fine for me when I try to re-implement it. |
@VinceG I ran into this same issue. I removed the |
It can be solved by
Or use v-show |
It seems that anything located in or beneath an element using
v-if
is disqualified from inheritance.This was happening in my custom directive as well. It seems that v-if breaks
.contains()
in some way.The text was updated successfully, but these errors were encountered: