-
Notifications
You must be signed in to change notification settings - Fork 477
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
feat(core): Tooltip
remove delay on click
#3502
Conversation
Pull request was closed ✔️All saved screenshots (for current PR) were deleted 🗑️ |
Visit the preview URL for this PR (updated for commit 6333690): https://taiga-ui--pr3502-hint-delay-2tbvrmmz.web.app (expires Wed, 15 Feb 2023 12:24:46 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 4b5ece1e114386f6a105425ef799091475b249eb |
Codecov ReportBase: 61.20% // Head: 68.19% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #3502 +/- ##
==========================================
+ Coverage 61.20% 68.19% +6.98%
==========================================
Files 1569 1142 -427
Lines 18546 13773 -4773
Branches 2568 1919 -649
==========================================
- Hits 11352 9393 -1959
+ Misses 6720 4052 -2668
+ Partials 474 328 -146
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
BundleMonFiles updated (1)
Unchanged files (4)
Total files change +90B +0.01% Groups updated (1)
Final result: ✅ View report in BundleMon website ➡️ |
Hint
remove delay on clickHint
add tuiHintClickDelay option, Tooltip
remove delay on click
Looks a bit like overcomplication to me :( |
529e460
to
bfdf83b
Compare
check other solution plz |
Hint
add tuiHintClickDelay option, Tooltip
remove delay on clickTooltip
remove delay on click
bfdf83b
to
1a18851
Compare
Now it's a bit hacky :( Could you check the following idea: Do we need a delay on toggling to true at all? What if we remove HostListener on click and a showDelay for toggle$ and only trigger it from |
I checked it. Toggle triggered from hint and yes we need delay for it. I didn't find a solution without separating click into another stream ( |
We don't really need delay for |
374bd90
to
b8ea77a
Compare
b8ea77a
to
6333690
Compare
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Closes #3450
What is the new behavior?
We need to separate click$ stream from toggle$, because toggle() also called on hover from HintComponent
We need to add zero delay to click$ stream, because without delay event bubbles up and closes hint immediately
Does this PR introduce a breaking change?