mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-08 16:28:59 +08:00
Merge pull request #897 from palash-signoz/896-monaco-editor-change
chore: onChange event is added
This commit is contained in:
commit
b958bad81f
@ -9,6 +9,12 @@ function Editor({ value }: EditorProps): JSX.Element {
|
|||||||
value={value.current}
|
value={value.current}
|
||||||
options={{ fontSize: 16, automaticLayout: true }}
|
options={{ fontSize: 16, automaticLayout: true }}
|
||||||
height="40vh"
|
height="40vh"
|
||||||
|
onChange={(newValue): void => {
|
||||||
|
if (value.current && newValue) {
|
||||||
|
// eslint-disable-next-line no-param-reassign
|
||||||
|
value.current = newValue;
|
||||||
|
}
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user