@jsenv/navi 0.29.411 → 0.29.412
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/dev/jsenv_navi.js
CHANGED
|
@@ -41470,6 +41470,13 @@ const useUIGroupStateController = (
|
|
|
41470
41470
|
placeOneChild(childUIStateController, childNewState, e);
|
|
41471
41471
|
},
|
|
41472
41472
|
setUIState: (newUIState, e) => {
|
|
41473
|
+
// `undefined` is how a parent empties a child (see the object
|
|
41474
|
+
// group's distributeChildUIState): what a leaf holds when it holds
|
|
41475
|
+
// nothing, and for a group of the default shape, the empty of its
|
|
41476
|
+
// type — not a value of the wrong shape to refuse.
|
|
41477
|
+
if (newUIState === undefined && stateShapeIsTheDefaultOne) {
|
|
41478
|
+
newUIState = fallbackState;
|
|
41479
|
+
}
|
|
41473
41480
|
if (
|
|
41474
41481
|
stateType === "object" &&
|
|
41475
41482
|
stateShapeIsTheDefaultOne &&
|