-
Notifications
You must be signed in to change notification settings - Fork 213
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
Delay close on mouseout #108
Conversation
Awesome. We've had many requests for this so it's great to see a PR actually implementing this. A few things before merging:
Otherwise, this look greats and I'll be happy to merge this soon 😸 |
As you wish
|
I added documentation for the focus event as well, as that didn't seem to be in there |
Sorry for all this delay 😿 However, I'm back now and I should be able to reply quickly going forward. 👍 Everything looks good, but I was wondering if we should just combine the Other than that, LGTM and I'll merge this once I get some input about the above. |
Just bumping to see if you had any thoughts on my comments above? It also seems like the branch needs a rebase to resolve conflicts 👍 |
This feature is imprescindible, please make it official 👍 |
I made the changes your suggested, but I did a |
git-fu done, conflicts resolved. I definitely see the argument for combining the hover and focus delays, however I can at least vouch for a desire for these to be separate. I'm using drop w/ tether-tooltips as part of my form validation, and while I like to show and hide the tooltips immediately on focus/blur, when they are hovered, I like to give users a chance to move the cursor over them so they can be clicked w/o them disappearing. |
Awesome! I'll take a look at this ASAP. In regards to consolidating the I'm mostly thinking out loud, but wanted to get it out there in case you had thought on that approach. |
That makes plenty of sense. i.e., having |
@@ -246,7 +246,11 @@ function createContext(options={}) { | |||
targetOffset: '0 0', | |||
enabled: false, | |||
constraints: constraints, | |||
addTargetClasses: this.options.addTargetClasses | |||
addTargetClasses: this.options.addTargetClasses, | |||
focusDelay: 0, |
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.
Everything looks good, but I think these delays should go here. These options are for Tether
specifically. Understandably, it's a bit confusing since Drop
also accept similar, if not the same options 😅
Sorry for not catching the above. comment earlier 😓 Once that is settled, do you also mind running |
It's all yours |
💥 Awesome! Thanks again for all this! |
Adds
hoverDelay
option and docs