Hide interactive tippy by clicking button inside content
See original GitHub issueHi! Help me please. I had made vue3 + vue-tippy dropdown component:
<tippy
ref="tippyRef"
animate-fill
:arrow="false"
:duration="[100, 50]"
:interactive="true"
:offset="offset"
:placement="placement"
theme="dropdown"
trigger="click">
<slot name="toggle">
<AppBtn :variant="variant">
{{ text }}
</ZBtn>
</slot>
<template #content>
<slot></slot>
</template>
</tippy>
Question is: how can i close tippy when user clicks interactive element (buttons, links) inside <slot>
content. ClickOutside
is working but any presses inside #content
are ignored
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How do I hide TippyJS when element inside it is clicked?
I have to hide my tippy when an element inside it has been clicked (element is i.e. small images acting as links) but...
Read more >Auto hide tooltip after being triggered with click. #531 - GitHub
Desired effect: After clicking a button a tooltip appears and then disappears automatically after x seconds without any input from user.
Read more >All Props | Tippy.js - GitHub Pages
Prop Default Description
plugins Specify plugins to use. See Plugins for details.
role "tooltip" Specifies the role attribute on the tippy element.
zIndex 9999 Determines the...
Read more >All Props - VueTippy
Determines if the tippy has interactive content inside of it, so that it can be hovered over and clicked inside without hiding.
Read more >Tippy.js - Tooltip and Popover Library
Interactivity. Tooltips can be interactive, allowing you to hover over and click inside them. Interactive. #HTML Content. Tooltips ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
you can grab the
hide
method and execute itusing ur example:
Upon further inspecting, it seems like whole object is an instance