@yuntijs/ui 1.1.0-beta.5 → 1.1.0-beta.6
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.
|
@@ -159,6 +159,10 @@ export var useEditor = function useEditor(type, props) {
|
|
|
159
159
|
if (!containerRef.current) {
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
|
+
if (editorRef.current) {
|
|
163
|
+
editorRef.current.dispose();
|
|
164
|
+
decomposeRef.current = false;
|
|
165
|
+
}
|
|
162
166
|
var editor;
|
|
163
167
|
if (typeRef.current === 'single') {
|
|
164
168
|
var _ref, _valueRef$current;
|