Skip to content

Commit 9c7bd30

Browse files
committed
docs(discovery): treat last step like noActivator for centered backdrop
1 parent cffa16e commit 9c7bd30

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

apps/docs/src/components/discovery/DiscoveryContent.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@
115115
if (isActive) {
116116
isReady.value = false
117117
118-
// Skip polling for steps with no activator
119118
const step = discovery.steps.get(root.step)
120-
if (step?.noActivator) {
119+
if (step?.noActivator || discovery.isLast.value) {
121120
isReady.value = true
122121
return
123122
}

apps/docs/src/components/discovery/DiscoveryHighlight.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@
7171
return
7272
}
7373
74-
// Clear rect for steps with no activator (scrim still shows, just no cutout)
7574
const step = discovery.steps.get(id)
76-
if (step?.noActivator) {
75+
if (step?.noActivator || discovery.isLast.value) {
7776
if (rect.value !== null) rect.value = null
7877
return
7978
}

0 commit comments

Comments
 (0)