Skip to content

Commit ba8fa73

Browse files
fix(Inline-toolbar): fake selection stays on screen after toggling convert to (codex-team#2768)
* Fix not removing fake selection on convert to toggle * Update version and changelog * Update docs/CHANGELOG.md Co-authored-by: Peter <[email protected]> --------- Co-authored-by: Peter <[email protected]>
1 parent 4a4981e commit ba8fa73

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 2.30.1
4+
5+
- `Fix` – Remove fake selection after multiple "convert to" inline tool toggles
6+
37
### 2.30.0
48

59
- `New` – Block Tunes now supports nesting items

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@editorjs/editorjs",
3-
"version": "2.30.0",
3+
"version": "2.30.1",
44
"description": "Editor.js — open source block-style WYSIWYG editor with JSON output",
55
"main": "dist/editorjs.umd.js",
66
"module": "dist/editorjs.mjs",

src/components/utils/popover/popover-inline.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@ export class PopoverInline extends PopoverDesktop {
127127
*/
128128
protected override showNestedItems(item: PopoverItemDefault | PopoverItemHtml): void {
129129
if (this.nestedPopoverTriggerItem === item) {
130-
this.nestedPopoverTriggerItem = null;
131130
this.destroyNestedPopoverIfExists();
131+
132+
this.nestedPopoverTriggerItem = null;
132133

133134
return;
134135
}

0 commit comments

Comments
 (0)