-
Notifications
You must be signed in to change notification settings - Fork 87
refactor!: update tooltip overlay to use native popover #9760
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
Conversation
| super.updated(props); | ||
|
|
||
| if (props.has('text') || props.has('generator') || props.has('context')) { | ||
| this.__updateContent(); |
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.
I'm not sure about this method. It mainly exists because of an ugly internal hack which is likely used in some customer project and relies on patching _renderer. Maybe we can just break that assumption and inline setting textContent here in updated().
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.
Doesn't really hurt to keep it.
|
| _hideTooltip(immediate) { | ||
| const tooltip = this._tooltipController && this._tooltipController.node; | ||
| if (tooltip) { | ||
| this._tooltipController.setContext({ item: null }); |
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.
Previously, tooltip was preserving the text after closing, which is rather unexpected. Tests didn't catch that because the IT assertion returned null if no vaadin-tooltip-overlay was found in the document.
|
This ticket/PR has been released with Vaadin 25.0.0-alpha3. |



Description
Fixes #9712
Type of change