MudToolTip: Move Duration Delay#11051
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #11051 +/- ##
==========================================
+ Coverage 91.05% 91.06% +0.01%
==========================================
Files 429 429
Lines 13964 13986 +22
Branches 2698 2701 +3
==========================================
+ Hits 12715 12737 +22
- Misses 646 647 +1
+ Partials 603 602 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
danielchalmers
left a comment
There was a problem hiding this comment.
I don't like that it relies on timing as a bandaid. Can the popover predict this is going to happen and prevent it, instead of handling it afterwards in the consumer?
And should this be a native part of the popover so it applies to all controls equally? It would be good if the tooltip can stay minimal and easy to recreate and all the popover stuff goes in the popover implementation.
Popover already has a Delay and Duration, if we want it to continue to handle ToolTips then we can undo my PRs to improve performance as they caused these problems to begin with. In my opinion the performance gains those PRs achieved is worth the extra headache but that's an opinion and I won't get my feelings hurt either way. Every single item you have a tooltip on pre those PRs is 2 items in the dom, if it was a custom tooltip it could be 3+ items. Put a single tooltip on a page of 25 DataGrid results and now you have 50+ dom items in a page. Then add in javascript connection by multiple events to the # of tooltips and it starts to get out of hand really fast. |
Thank you for the context! I'll try to look into this further, would hate to lose perf benefits but I don't think I was active in that PR. |
|
@danielchalmers so do I merge this? |
|
|
@ScarletKuro will look more Saturday. I think debounce should be avoided at all cost (if I understand this right) |
|
Is the addition of guarding the MudPopover in MudToolTip with |
I'm fine with the current solution, by the way. There is no reason to spam-update the |
|
Also just fyi, the old way was constantly updating MudPopover who was sending new Delay/Duration updates to CSS. The CSS handled it well but updates also meant js callbacks. I do prefer CSS over the debounce solution but even if we reverted the other two PRs we would still get gains from adding the debounce updates. |
|
Ah, thanks guys (I didn't understand it right). Didn't test the branch but it seems logical |



Description
Regression from #10853
Combines with #11038 to fix all problems with tooltips that I'm aware of by moving Duration/Delay to the tooltip instead of Popover and implementing DebounceDispatcher.
Resolves #11045 and #11046
How Has This Been Tested?
Type of Changes
Checklist
dev).