@homebound/beam 2.371.1 → 2.371.2

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.
@@ -453,7 +453,8 @@ function levelOptions(o, level, filtering, collapsedKeys, getOptionValue) {
453
453
  const actualLevel = filtering ? 0 : level;
454
454
  return [
455
455
  [o, actualLevel],
456
- ...(((_a = o.children) === null || _a === void 0 ? void 0 : _a.length) && !collapsedKeys.includes((0, Value_1.valueToKey)(getOptionValue(o)))
456
+ // Flat map the children if the parent is not collapsed or if we are filtering (for the search results)
457
+ ...(((_a = o.children) === null || _a === void 0 ? void 0 : _a.length) && (!collapsedKeys.includes((0, Value_1.valueToKey)(getOptionValue(o))) || filtering)
457
458
  ? o.children.flatMap((oc) => levelOptions(oc, actualLevel + 1, filtering, collapsedKeys, getOptionValue))
458
459
  : []),
459
460
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.371.1",
3
+ "version": "2.371.2",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",