From 29fd7e8af116eff8bf44b43a2ce027ac34b09ad4 Mon Sep 17 00:00:00 2001 From: "Claudia R. Girani Tejos" Date: Wed, 18 Oct 2023 15:22:37 -0300 Subject: [PATCH] fix(codeeditor): update onMount function --- packages/react/src/components/CodeEditor/CodeEditor.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/react/src/components/CodeEditor/CodeEditor.jsx b/packages/react/src/components/CodeEditor/CodeEditor.jsx index 949fd4973d..1d8738bdf5 100644 --- a/packages/react/src/components/CodeEditor/CodeEditor.jsx +++ b/packages/react/src/components/CodeEditor/CodeEditor.jsx @@ -94,11 +94,12 @@ const CodeEditor = ({ /** * - * @param {func} _editorValue - a method that returns the current value of the editor - * @param {object} val - instance of the monaco editor + * @param {object} editor - instance of the editor + * @param {object} _monaco - instance of monaco */ - const handleEditorDidMount = (_editorValue, val) => { - editorValue.current = val; + // eslint-disable-next-line no-unused-vars + const handleEditorDidMount = (editor, _monaco) => { + editorValue.current = editor; updateEditorAttribute(disabled, editorValue); };