Skip to content

Commit

Permalink
fix(codeeditor): update onMount function
Browse files Browse the repository at this point in the history
  • Loading branch information
cgirani committed Oct 18, 2023
1 parent 1c48140 commit 29fd7e8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/react/src/components/CodeEditor/CodeEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit 29fd7e8

Please sign in to comment.