Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: when navigator item is being edited, it can't be draggable (#3286)

Oleg Isonen8864524d3f81
diff --git a/packages/design-system/src/components/tree/tree.tsx b/packages/design-system/src/components/tree/tree.tsx
index 958187a0aa..a6f5ba48be 100644
--- a/packages/design-system/src/components/tree/tree.tsx
+++ b/packages/design-system/src/components/tree/tree.tsx
@@ -213,6 +213,9 @@ export const Tree = <Data extends { id: string }>({
shiftDistanceThreshold: INDENT,
elementToData: (element) => {
+ if (element.hasAttribute("contenteditable")) {
+ return false;
+ }
const dragItemSelector = getItemSelectorFromElement(element);
// tree root is not draggable
if (dragItemSelector.length === 1) {