@onehat/ui 0.3.141 → 0.3.143
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
|
@@ -112,7 +112,7 @@ export default function withSecondaryEditor(WrappedComponent, isTree = false) {
|
|
|
112
112
|
addValues[secondarySelectorId] = secondarySelectorSelected.id;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
if (
|
|
115
|
+
if (getNewEntityDisplayValue()) {
|
|
116
116
|
const displayPropertyName = SecondaryRepository.getSchema().model.displayProperty;
|
|
117
117
|
addValues[displayPropertyName] = getNewEntityDisplayValue();
|
|
118
118
|
}
|
|
@@ -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
|
|
|
@@ -109,7 +109,7 @@ export default function withEditor(WrappedComponent, isTree = false) {
|
|
|
109
109
|
addValues[selectorId] = selectorSelected.id;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
if (
|
|
112
|
+
if (getNewEntityDisplayValue()) {
|
|
113
113
|
const displayPropertyName = Repository.getSchema().model.displayProperty;
|
|
114
114
|
addValues[displayPropertyName] = getNewEntityDisplayValue();
|
|
115
115
|
}
|