()
| 479 | (props.defaultExpanded || []).includes(props.label), |
| 480 | ) |
| 481 | const hasSearchMatchingChild = () => |
| 482 | !!props.search && |
| 483 | [...props.search.match.children.values()].some((child) => child.hasMatch) |
| 484 | const isExpanded = () => expanded() || hasSearchMatchingChild() |
| 485 | const toggleExpanded = () => { |
| 486 | if (!hasSearchMatchingChild()) setExpanded((old) => !old) |
no outgoing calls
no test coverage detected