Akryum / floating-vue

💬 Easy tooltips, popovers, dropdown, menus... for Vue
https://floating-vue.starpad.dev/
MIT License
3.33k stars 338 forks source link

v-if DOM redraw breaks popover #862

Open dusterio opened 2 years ago

dusterio commented 2 years ago

I noticed that whenever a popover element is within a conditional v-if parent element, it will only work until the first redraw - something in the lifecycle is potentially broken

Inspecting the DOM, I can see t hat floating-vue does mount again after re-draw, so maybe there is an issue with event handlers and/or binding - hover event is no longer handled

Very easy to re-produce - just wrap or another component in a