@onehat/ui 0.3.141 → 0.3.142
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/package.json
CHANGED
|
@@ -421,7 +421,7 @@ export default function withSecondaryEditor(WrappedComponent, isTree = false) {
|
|
|
421
421
|
// Most of the time, if secondarySelection changed, put the Editor in "view" mode
|
|
422
422
|
mode = EDITOR_MODE__VIEW;
|
|
423
423
|
}
|
|
424
|
-
|
|
424
|
+
secondarySetEditorMode(mode);
|
|
425
425
|
|
|
426
426
|
setSecondaryIsIgnoreNextSelectionChange(false);
|
|
427
427
|
setLastSelection(secondarySelection);
|
|
@@ -442,9 +442,9 @@ export default function withSecondaryEditor(WrappedComponent, isTree = false) {
|
|
|
442
442
|
// we see a flash of the previous state, since useEffect hasn't yet run.
|
|
443
443
|
// (basically redo what's in the useEffect, above)
|
|
444
444
|
if (secondaryIsIgnoreNextSelectionChange) {
|
|
445
|
-
|
|
445
|
+
secondaryEditorMode = calculateEditorMode();
|
|
446
446
|
} else {
|
|
447
|
-
|
|
447
|
+
secondaryEditorMode = EDITOR_MODE__VIEW;
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
|