You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you quickly swipe the tooltip activation element, the hint will appear and will not disappear (very easy to get with the console open, but that doesn't mean it's impossible without it)
Code:
src/js/plugins/tooltip/index.ts:166
private _show() {
this.content.classList.remove('hidden')
if (this.scope === 'window') this.content.classList.add('show')
if (this.preventPopper === 'false') {
this.popperInstance.setOptions(options => ({
...options,
modifiers: [
...options.modifiers,
{
name: 'eventListeners',
enabled: true
}
]
}))
this.popperInstance.update()
}
setTimeout(() => { // Why needs this setTimeout? #185
this.el.classList.add('show')
this.fireEvent('show', this.el)
dispatch('show.tooltip', this.el, this.el)
})
}
public hide() {
this.el.classList.remove('show') // where setTimeout if it needs?
...
Problem timeline:
invoke _show
setTimeout
hide (remove class "show" but it not exists)
setTimeout from step 2 is running and add class "show"
I'm writting issue
Possible solution:
remove setTimeout from 185 line.
The text was updated successfully, but these errors were encountered:
Thank you for your support in helping us improve FlyonUI!
We’ve received your submission and will respond within few business days. Our team handles issues one at a time, and we’ll be reviewing yours as soon as possible.
In the meantime, any additional details or a reproducible example would be greatly appreciated and will help us resolve the issue more efficiently.
What version of FlyonUI are you using?
1.3.0
Which browsers are you seeing the problem on?
All browsers
Reproduction URL
https://flyonui.com/docs/overlays/tooltip/
Describe your issue
If you quickly swipe the tooltip activation element, the hint will appear and will not disappear (very easy to get with the console open, but that doesn't mean it's impossible without it)
Code:
src/js/plugins/tooltip/index.ts:166
Problem timeline:
Possible solution:
remove setTimeout from 185 line.
The text was updated successfully, but these errors were encountered: