Looks like state is not in sync #360
Unanswered
dev-cyprium
asked this question in
Q&A
Replies: 1 comment
-
I have the same issue... |
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
-
Hello, great plugin by the way!
However, I've stumbled upon just one weird issue with it:
I have a computed property
isOpen
which does the following code:And here is the template:
So, my computed property returns false, but the popover still is being rendered. Which means it's not in sync properly with the
prop
.I assume this is the case because I refactored the code to use a
v-if
instead and av-else
on the sameisOpen
computed property, and wrapped thev-popover
component and in that case it works flawlessly. However, I consider this a hack, and I'd like for the library to just work on it's own.I also used the Vue dev tools to look into the state itself of the popper, and in fact, even though my prop value is false, the state of the component shows that it's internal state is open.
Maybe I'm doing something wrong?
Regardless, thanks for the help, and keep up the good work on this plugin!
Beta Was this translation helpful? Give feedback.
All reactions