A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: helper message to open the native browser search, fix when a dialog is open (#1470)
Myles Scolnick1f927f340d39
diff --git a/frontend/src/components/find-replace/find-replace.tsx b/frontend/src/components/find-replace/find-replace.tsxindex de963319f2..bfccb6399f 100644--- a/frontend/src/components/find-replace/find-replace.tsx+++ b/frontend/src/components/find-replace/find-replace.tsx@@ -32,6 +32,8 @@ import {clearGlobalSearchQuery,setGlobalSearchQuery,} from "@/core/codemirror/find-replace/search-highlight";+import { KeyboardHotkeys } from "../shortcuts/renderShortcut";+import { HOTKEYS } from "@/core/hotkeys/hotkeys";export const FindReplace: React.FC = () => {const [isFocused, setIsFocused] = useState(false);@@ -262,6 +264,13 @@ export const FindReplace: React.FC = () => {</span>)}</div>+ <div className="text-xs text-muted-foreground flex gap-1 mt-2">+ Press{" "}+ <KeyboardHotkeys+ shortcut={HOTKEYS.getHotkey("cell.findAndReplace").key}+ />{" "}+ again to open the native browser search.+ </div></div></FocusScope>);diff --git a/frontend/src/core/codemirror/find-replace/state.ts b/frontend/src/core/codemirror/find-replace/state.tsindex 2387be9f37..c150f2a3b7 100644--- a/frontend/src/core/codemirror/find-replace/state.ts+++ b/frontend/src/core/codemirror/find-replace/state.ts@@ -91,13 +91,14 @@ export const findReplaceAtom = atomWithReducer<FindReplaceState, Action>(export function openFindReplacePanel(initialView?: EditorView): boolean {// If any radix dialog is open, don't open the find/replace panel- // they have role="dialog" and data-state="open" and has children- const element = document.querySelector('[role="dialog"][data-state="open"]');- if (- element &&- element instanceof HTMLElement &&- element.children.length > 0- ) {+ // if they have role="dialog" and data-state="open" and has children+ const element = document.querySelectorAll(+ '[role="dialog"][data-state="open"]',+ );+ const someHasChildren = [...element].some(+ (el) => el instanceof HTMLElement && el.childNodes.length > 0,+ );+ if (someHasChildren) {return false;}