-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Enhancement: setting delay to show/hide popover #267
Conversation
Hi, thank you for using this lib. the idea sounds good, but:
|
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.
pls see my comment
Hi @wxsms , thanks for your reply.
I can't see any use of There is only one reference, when hiding the popup: One more thing that I've noticed is that it is not quite a duration for hidding it. Inside the As a sidenote I would be also happy in documenting (writing an example) better this
Thanks :) |
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.
pls see my comment in code.
src/mixins/popupMixin.js
Outdated
this.hideTimeoutId = setTimeout(() => { | ||
removeClass(this.$refs.popup, SHOW_CLASS) | ||
// gives fade out time | ||
setTimeout(() => { |
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.
There might be a bug: while you clearing hideTimeoutId
, if the inner code have already run, the inner timeout will not be cleared. and it will still be removed from DOM while time arrived.
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.
@feliupe done. will release on next version. thanks. |
Is this a bug fix or enhancement?
Enhancement.
Is there a related issue?
I want to make possible to set an delay to show/hide a popover. Just like the Bootstrap Tooltip.
It can be very annoying being unable to set in cases like tables, where you have all the cells around also wrapped in a popover. If you hover really fast from on side to the other of the table you will be unable to see some cells as the popover is shown the moment you hover one on it side.
Let me know if you don't get it. I can add screenshots later.
Any Breaking changes?
Yes. Thought, I can work around it, by not removing
transitionDuration
for now.Please let me know if it sounds like something for you, so that I can work on it better - with your help - and also write tests.
We use all over the client where I work, and we would be pretty much interested in having it merged.