Skip to content

Commit 7de60d0

Browse files
committed
dont show toolbar when editing a contenteditable node/element
1 parent 7906e34 commit 7de60d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libs/app-canvas/src/app/components/toolbar.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ export function Toolbar<T extends BaseNodeInfo>(props: {
122122
if (!info) {
123123
return;
124124
}
125+
if (
126+
document &&
127+
document.activeElement &&
128+
(document.activeElement as unknown as HTMLElement).isContentEditable
129+
) {
130+
return;
131+
}
125132
console.log(
126133
'Toolbar selectedNodeInfo',
127134
selectedNodeInfo,

0 commit comments

Comments
 (0)