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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: Make Navigation Items editable after opening Binding dialog (#3905)
Ivan Starkove2a0878d85d0
diff --git a/apps/builder/app/builder/shared/code-editor-base.tsx b/apps/builder/app/builder/shared/code-editor-base.tsxindex cd10c423eb..b3bf77a121 100644--- a/apps/builder/app/builder/shared/code-editor-base.tsx+++ b/apps/builder/app/builder/shared/code-editor-base.tsx@@ -44,6 +44,12 @@ import {} from "@webstudio-is/design-system";import { CrossIcon, MaximizeIcon, MinimizeIcon } from "@webstudio-is/icons";+// This undocumented flag is required to keep contenteditable fields editable after the first activation of EditorView.+// To reproduce the issue, open any Binding dialog and then try to edit a Navigation Item in the Navigation menu.+// eslint-disable-next-line @typescript-eslint/ban-ts-comment+// @ts-expect-error+EditorView.EDIT_CONTEXT = false;+const ExternalChange = Annotation.define<boolean>();const minHeightVar = "--ws-code-editor-min-height";