diff --git a/packages/website/src/components/Editor/index.js b/packages/website/src/components/Editor/index.js index 8e8d6fa3fac5..50cd61d240bc 100644 --- a/packages/website/src/components/Editor/index.js +++ b/packages/website/src/components/Editor/index.js @@ -301,6 +301,13 @@ ${fixAssetPaths(_js)}`, tabBarRef.current.project = projectRef.current; fileEditorRef.current.project = projectRef.current; previewRef.current.project = projectRef.current; + + // algolia search opens the search on key `/` because this custom element is the event target but has no `isContentEditable` + Object.defineProperty(fileEditorRef.current, "isContentEditable", { + get() { + return true; + }, + }); tabBarRef.current.editor = fileEditorRef.current;