Skip to content

Commit b8d794f

Browse files
committed
INT-3226: Fix Deepscan issue
1 parent 9bb49d9 commit b8d794f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/ts/components/Editor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Type } from '@ephox/katamari';
12
import * as React from 'react';
23
import type { Bookmark, EditorEvent, TinyMCE, Editor as TinyMCEEditor } from 'tinymce';
34
import { IEvents } from '../Events';
@@ -524,7 +525,7 @@ export const Editor = React.forwardRef<HTMLElement, IAllProps>((props, ref) => {
524525
}
525526
});
526527
}
527-
if (props.disabled) {
528+
if (Type.isNonNullable(props.disabled)) {
528529
const disabled = props.disabled ?? false;
529530
setMode(editorRef.current, disabled ? 'readonly' : 'design');
530531
}

0 commit comments

Comments
 (0)