@ckeditor/ckeditor5-ui 41.4.0 → 41.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ui",
3
- "version": "41.4.0",
3
+ "version": "41.4.2",
4
4
  "description": "The UI framework and standard UI library of CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,8 +12,8 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "41.4.0",
16
- "@ckeditor/ckeditor5-utils": "41.4.0",
15
+ "@ckeditor/ckeditor5-core": "41.4.2",
16
+ "@ckeditor/ckeditor5-utils": "41.4.2",
17
17
  "color-convert": "2.0.1",
18
18
  "color-parse": "1.4.2",
19
19
  "lodash-es": "4.17.21",
@@ -348,6 +348,11 @@ class TooltipManager extends DomEmitterMixin() {
348
348
  * Hides the tooltip when the element is no longer visible in DOM or the tooltip text was removed.
349
349
  */
350
350
  _updateTooltipPosition() {
351
+ // The tooltip might get removed by focus listener triggered by the same UI `update` event.
352
+ // See https://github.com/ckeditor/ckeditor5/pull/16363.
353
+ if (!this._currentElementWithTooltip) {
354
+ return;
355
+ }
351
356
  const tooltipData = getTooltipData(this._currentElementWithTooltip);
352
357
  // This could happen if the tooltip was attached somewhere in a contextual content toolbar and the toolbar
353
358
  // disappeared (e.g. removed an image), or the tooltip text was removed.