@connectif/ui-components 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22657,11 +22657,9 @@ var TextEditor = function TextEditor2({
|
|
|
22657
22657
|
);
|
|
22658
22658
|
const onTextChange = React67.useCallback(() => {
|
|
22659
22659
|
if (editorRef.current) {
|
|
22660
|
-
onChange(
|
|
22661
|
-
!isCodeEditorDirty ? contentValue : editorRef.current?.getContent()
|
|
22662
|
-
);
|
|
22660
|
+
onChange(editorRef.current?.getContent());
|
|
22663
22661
|
}
|
|
22664
|
-
}, [
|
|
22662
|
+
}, [onChange]);
|
|
22665
22663
|
const onTextEditorDirty = React67.useCallback(
|
|
22666
22664
|
(textEditorDirty) => {
|
|
22667
22665
|
editorRef.current?.setDirty(textEditorDirty);
|