mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 23:29:01 +08:00
chore: onChange event is added
This commit is contained in:
parent
44d3f35a5f
commit
deff5d5e17
@ -9,6 +9,12 @@ function Editor({ value }: EditorProps): JSX.Element {
|
||||
value={value.current}
|
||||
options={{ fontSize: 16, automaticLayout: true }}
|
||||
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