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
I've only worked so far with Dialog (https://headlessui.com/vue/dialog), but it appears the unmount property does not do anything. That is to say, the component is not unmounted when hidden (or at least, my onUnmounted callback never fires). Reading through the source code for the component (
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've only worked so far with
Dialog
(https://headlessui.com/vue/dialog), but it appears theunmount
property does not do anything. That is to say, the component is not unmounted when hidden (or at least, my onUnmounted callback never fires). Reading through the source code for the component (headlessui/packages/@headlessui-vue/src/components/dialog/dialog.ts
Line 77 in d874e56
No biggie, I just need to know that this is the case so I can put cleanup and reset logic elsewhere instead of
onUnmounted
hook.Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions