diff --git a/src/components/InputJson.tsx b/src/components/InputJson.tsx index 04b782cd..3c1ad07a 100644 --- a/src/components/InputJson.tsx +++ b/src/components/InputJson.tsx @@ -7,6 +7,7 @@ import stringifyPretty from "json-stringify-pretty-compact"; import {createEditor} from "../libs/codemirror-editor-factory"; import type { StylePropertySpecification } from "maplibre-gl"; +import { TransactionSpec } from "@codemirror/state"; export type InputJsonProps = { value: object @@ -59,6 +60,7 @@ class InputJsonInternal extends React.Component { if (this.props.onFocus) this.props.onFocus(); + console.log("focusing"); this.setState({ isEditing: true, }); @@ -69,21 +71,24 @@ class InputJsonInternal extends React.Component