We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27a6e75 commit 7309a85Copy full SHA for 7309a85
src/components/YamlEditor/YamlEditor.tsx
@@ -41,11 +41,11 @@ export const YamlEditor = (props: YamlEditorProps) => {
41
);
42
43
const handleEditorChange = useCallback(
44
- (val: string | undefined) => {
+ (val: string | undefined, event?: monaco.editor.IModelContentChangedEvent) => {
45
if (isEdit) {
46
setEditorContent(val ?? '');
47
}
48
- onChange?.(val ?? '', undefined as unknown as monaco.editor.IModelContentChangedEvent);
+ onChange?.(val ?? '', event);
49
},
50
[isEdit, onChange],
51
0 commit comments