@wishbone-media/spark 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wishbone-media/spark",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,4 +1,4 @@
1
- import { markRaw, reactive, shallowReactive } from 'vue'
1
+ import { markRaw, nextTick, reactive, shallowReactive } from 'vue'
2
2
 
3
3
  // Liveness fallback: if a renderer's after-enter/after-leave never arrives
4
4
  // (unmounted mid-transition, throttled background tab), force-settle so the
@@ -75,8 +75,14 @@ export function useSparkOverlay() {
75
75
  }
76
76
  if (state.isVisible) return
77
77
  state.isVisible = true
78
- if (guarded()) beginTransition('entering')
79
- else phase = 'open'
78
+ if (guarded()) {
79
+ beginTransition('entering')
80
+ nextTick(() => {
81
+ if (phase === 'entering') settle('open')
82
+ })
83
+ } else {
84
+ phase = 'open'
85
+ }
80
86
  }
81
87
 
82
88
  const close = () => {