Open IlyaSemenov opened 6 days ago
Oruga version: 0.9.0-pre.1 Vuejs version: 5.4.9 OS/Browser: macOS/Chrome
When using oruga.modal.open(...), and the modal is dismissed, onBeforeUnmount and onUnmounted are not called for the inner component (and all its children).
oruga.modal.open(...)
onBeforeUnmount
onUnmounted
That breaks code that relies on the unmount callbacks, for example: https://github.com/TownSquareXYZ/tonconnect-ui-vue/blob/ee614c6b09efb3a9ef200887882a88de32a300d6/src/components/TonConnectButton.vue#L18-L24
Reproduction: https://stackblitz.com/edit/vitejs-vite-2dzjwv
Both modals log 3 events each: onMounted, onBeforeUnmount, onUnmounted.
Programmatic modal only logs onMounted, but not onBeforeUnmount and onUnmounted.
Inline modal logs all 3 events.
Thank you!!! This issue is already known and fixed in dev and will be fixed in the release.
Overview of the problem
Oruga version: 0.9.0-pre.1 Vuejs version: 5.4.9 OS/Browser: macOS/Chrome
Description
When using
oruga.modal.open(...)
, and the modal is dismissed,onBeforeUnmount
andonUnmounted
are not called for the inner component (and all its children).That breaks code that relies on the unmount callbacks, for example: https://github.com/TownSquareXYZ/tonconnect-ui-vue/blob/ee614c6b09efb3a9ef200887882a88de32a300d6/src/components/TonConnectButton.vue#L18-L24
Steps to reproduce
Reproduction: https://stackblitz.com/edit/vitejs-vite-2dzjwv
Expected behavior
Both modals log 3 events each: onMounted, onBeforeUnmount, onUnmounted.
Actual behavior
Programmatic modal only logs onMounted, but not onBeforeUnmount and onUnmounted.
Inline modal logs all 3 events.