@ckeditor/ckeditor5-ui 47.7.1 → 47.7.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/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/button/buttonview.js +1 -1
- package/src/dropdown/utils.js +3 -2
- package/src/editorui/editorui.js +1 -1
- package/src/toolbar/block/blocktoolbar.js +1 -1
- package/theme/components/panel/stickypanel.css +1 -1
package/dist/index.js
CHANGED
|
@@ -2921,7 +2921,7 @@ function normalizeKeystrokeDefinition(definition) {
|
|
|
2921
2921
|
return String(!!isOn);
|
|
2922
2922
|
});
|
|
2923
2923
|
// On Safari we have to force the focus on a button on click as it's the only browser
|
|
2924
|
-
// that doesn't do that automatically. See
|
|
2924
|
+
// that doesn't do that automatically. See https://github.com/ckeditor/ckeditor5/issues/12115.
|
|
2925
2925
|
if (env.isSafari) {
|
|
2926
2926
|
if (!this._focusDelayed) {
|
|
2927
2927
|
this._focusDelayed = delay(()=>this.focus(), 0);
|
|
@@ -10376,8 +10376,9 @@ function addMenuToOpenDropdown(dropdownView, options) {
|
|
|
10376
10376
|
return;
|
|
10377
10377
|
}
|
|
10378
10378
|
const elements = dropdownView.focusTracker.elements;
|
|
10379
|
-
// If the dropdown was closed, move the focus back to the button (
|
|
10380
|
-
// Don't touch the focus, if it moved somewhere else (e.g. moved to the editing root on #execute)
|
|
10379
|
+
// If the dropdown was closed, move the focus back to the button (https://github.com/ckeditor/ckeditor5/issues/12125).
|
|
10380
|
+
// Don't touch the focus, if it moved somewhere else (e.g. moved to the editing root on #execute).
|
|
10381
|
+
// See https://github.com/ckeditor/ckeditor5/issues/12178.
|
|
10381
10382
|
// Note: Don't use the state of the DropdownView#focusTracker here. It fires #blur with the timeout.
|
|
10382
10383
|
if (elements.some((element)=>element.contains(global.document.activeElement))) {
|
|
10383
10384
|
dropdownView.buttonView.focus();
|
|
@@ -14241,7 +14242,7 @@ function isMenuDefinition(definition) {
|
|
|
14241
14242
|
// This ensures, the navigation works always the same and no pair of toolbars takes over
|
|
14242
14243
|
// (e.g. image and table toolbars when a selected image is inside a cell).
|
|
14243
14244
|
// * It could be that the focus went to the toolbar by clicking a toolbar item (e.g. a dropdown). In this case,
|
|
14244
|
-
// there were no candidates so they must be obtained (
|
|
14245
|
+
// there were no candidates so they must be obtained (https://github.com/ckeditor/ckeditor5/issues/12339).
|
|
14245
14246
|
if (!currentFocusedToolbarDefinition || !candidateDefinitions) {
|
|
14246
14247
|
candidateDefinitions = this._getFocusableCandidateToolbarDefinitions();
|
|
14247
14248
|
}
|
|
@@ -17222,7 +17223,7 @@ const toPx = /* #__PURE__ */ toUnit('px');
|
|
|
17222
17223
|
* @inheritDoc
|
|
17223
17224
|
*/ destroy() {
|
|
17224
17225
|
super.destroy();
|
|
17225
|
-
// Destroy created UI components as they are not automatically destroyed (see ckeditor5
|
|
17226
|
+
// Destroy created UI components as they are not automatically destroyed (see https://github.com/ckeditor/ckeditor5/issues/1341).
|
|
17226
17227
|
this.panelView.destroy();
|
|
17227
17228
|
this.buttonView.destroy();
|
|
17228
17229
|
this.toolbarView.destroy();
|