Skip to content

Commit 583188d

Browse files
authored
Merge pull request #109 from AdamDrewsTR/clip-path
fix: reset clip-path when highlighting is disabled in VTour component
2 parents fcd07fa + 0d8fbab commit 583188d

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@
6767
},
6868
"dependencies": {
6969
"jump.js": "^1.0.2",
70-
"nanopop": "^2.4.2",
70+
"nanopop": "^2.4.2"
71+
},
72+
"peerDependencies": {
7173
"vue": "^3.5.22"
7274
},
7375
"devDependencies": {

src/components/VTour.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ const updateHighlight = (): void => {
445445
446446
// Check if highlighting is disabled or no step data
447447
if (!currentStepData || (!props.highlight && !currentStepData.highlight)) {
448+
// Reset clip-path when highlighting is disabled
449+
getClipPath.value = '';
448450
return;
449451
}
450452

0 commit comments

Comments
 (0)