-
-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow exit animations to play before step tooltip disappears. #279
Conversation
9bb47bc
to
4c0a30a
Compare
8e4f85a
to
3283f4f
Compare
811a82f
to
7b02b46
Compare
Closes #277 This removes our own manual management of `this.el`'s appearance/presence in the DOM -- since tippy is handling it already.
aa69177
to
1a74ed0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This got a bit harrier than I anticipated -- for a few reasons:
As I started testing the step cleanup process to account for the Step.hide
changes, I realized that some of our unit test blocks weren't properly tearing down their Tour
instance -- so that accounts for some of the structural changes.
I also moved the Step
cleanup tests out of Cy and into Mocha to try and keep it as focused as possible. (I continue to have issues with Cy finding elements that "should not exist" because they did exist at some point during the test 😕).
Finally, I refactored done
so that it calls destroy
on the current step instead of hide
, while also separating currentStep.hide
outside the concern of Tour._setupActiveTour
.
8dba962
to
2cd8c07
Compare
2cd8c07
to
2f7e6a0
Compare
0fd8650
to
325b372
Compare
Closes #277
This removes our own manual management of
this.el
's appearance/presencein the DOM -- since tippy is handling it already.
This allows the tooltip's exit animation to play, as opposed to having the element disappear instantly before we even call
tippy.hide
.