@ckeditor/ckeditor5-ui 41.4.0 → 41.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/tooltipmanager.js +5 -0
package/dist/index.js
CHANGED
|
@@ -9268,6 +9268,11 @@ const BALLOON_CLASS = 'ck-tooltip';
|
|
|
9268
9268
|
*
|
|
9269
9269
|
* Hides the tooltip when the element is no longer visible in DOM or the tooltip text was removed.
|
|
9270
9270
|
*/ _updateTooltipPosition() {
|
|
9271
|
+
// The tooltip might get removed by focus listener triggered by the same UI `update` event.
|
|
9272
|
+
// See https://github.com/ckeditor/ckeditor5/pull/16363.
|
|
9273
|
+
if (!this._currentElementWithTooltip) {
|
|
9274
|
+
return;
|
|
9275
|
+
}
|
|
9271
9276
|
const tooltipData = getTooltipData(this._currentElementWithTooltip);
|
|
9272
9277
|
// This could happen if the tooltip was attached somewhere in a contextual content toolbar and the toolbar
|
|
9273
9278
|
// disappeared (e.g. removed an image), or the tooltip text was removed.
|