Skip to content

Commit

Permalink
fix exitIntro tests
Browse files Browse the repository at this point in the history
  • Loading branch information
binrysearch committed Sep 7, 2024
1 parent 9d2c558 commit 7400e1b
Show file tree
Hide file tree
Showing 5 changed files with 183 additions and 223 deletions.
10 changes: 2 additions & 8 deletions src/packages/tour/components/TourRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export const TourRoot = ({ tour }: TourRootProps) => {
const root = div(
{
className: "introjs-tour",
style: () =>
style({ opacity: `${opacity.val}` }),
style: () => style({ opacity: `${opacity.val}` }),
},
// helperLayer should not be re-rendered when the state changes for the transition to work
helperLayer,
Expand Down Expand Up @@ -157,11 +156,7 @@ export const TourRoot = ({ tour }: TourRootProps) => {
// the 300ms delay is coming from the helper layer transition duration
tooltipTransitionDuration = 300;

return div(
overlayLayer,
referenceLayer,
disableInteraction
);
return div(overlayLayer, referenceLayer, disableInteraction);
}
);

Expand All @@ -174,7 +169,6 @@ export const TourRoot = ({ tour }: TourRootProps) => {
root.remove();
}, 250);
}

});

setTimeout(() => {
Expand Down
Loading

0 comments on commit 7400e1b

Please sign in to comment.