-
Notifications
You must be signed in to change notification settings - Fork 97
Add isVisible and isEnabled props #20
Conversation
| } | ||
|
|
||
| if (this.isManualTrigger && isVisible === true) { | ||
| this.tip.show() |
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.
Per atomiks/tippyjs#230, shouldn't this be?
| this.tip.show() | |
| setTimeout(this.tip.show) |
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.
I'm going to release a new tippy.js patch that changes the global click listener to use capture phase (instead of bubbling) by default. That will prevent the need to do this.
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.
May want to update the docs on how isVisible and showOnInit relate (or don't) to help avoid confusion down the road. Nice job on the project and thank you for all the work.
* Switch to react-testing-library * Remove PR #20 tests for now
|
Switching to Not sure what was wrong, but the tests are passing now and coverage 100% |
Wraps Tippy's
.enable(),.disable(),.show(), and.hide()methods using props.isVisiblemust be accompanied bytrigger="manual"For some reason the
isVisibletests are failing. Anyone want to take a look? Seems liketrigger="manual"causes a problem but I have no idea why.Manual dev environment tests show it working as expected