-
-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Description
In the following snippet, I cannot click on the label and get the cursor to jump into the editor:
import React, { useState } from "react";
import CodeMirror from "@uiw/react-codemirror";
import { javascript } from "@codemirror/lang-javascript";
export default function App() {
const onChange = React.useCallback((value, viewUpdate) => {
console.log("value:", value);
}, []);
return (
<div>
<label for="test">Test</label>
<CodeMirror
id="test"
value="console.log('hello world!');"
height="200px"
theme="dark"
extensions={[javascript({ jsx: true })]}
onChange={onChange}
/>
</div>
);
}Metadata
Metadata
Assignees
Labels
No labels