✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
fix search input blur
AykutSarac393cd7ec5931
diff --git a/src/components/Graph/index.tsx b/src/components/Graph/index.tsxindex e6429d73..544c55d7 100644--- a/src/components/Graph/index.tsx+++ b/src/components/Graph/index.tsx@@ -79,6 +79,11 @@ const MemoizedGraph = React.memo(function Layout({}}, []);+ const onCanvasClick = React.useCallback(() => {+ const input = document.querySelector("input:focus") as HTMLInputElement;+ if (input) input.blur();+ }, []);+React.useEffect(() => {const { nodes, edges } = parser(json, expand);@@ -111,6 +116,7 @@ const MemoizedGraph = React.memo(function Layout({maxHeight={size.height}direction={layout}onLayoutChange={onLayoutChange}+ onCanvasClick={onCanvasClick}key={layout}zoomable={false}animated={false}