()
| 442 | (props.defaultExpanded || []).includes(props.label), |
| 443 | ) |
| 444 | const hasSearchMatchingChild = () => |
| 445 | !!props.search && |
| 446 | [...props.search.match.children.values()].some((child) => child.hasMatch) |
| 447 | const isExpanded = () => expanded() || hasSearchMatchingChild() |
| 448 | const toggleExpanded = () => { |
| 449 | if (!hasSearchMatchingChild()) setExpanded((old) => !old) |
no outgoing calls
no test coverage detected