Skip to content

Commit 7c96f1f

Browse files
authored
fix: Correctly show parent nodes during search (dowjones#183)
Closes dowjones#155
1 parent d196d44 commit 7c96f1f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

docs/bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tree/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import React, { Component } from 'react'
55
import TreeNode from '../tree-node'
66

77
const shouldRenderNode = (node, searchModeOn, data) => {
8-
if (node.hide) return false
98
if (searchModeOn || node.expanded) return true
109

1110
const parent = node._parent && data.get(node._parent)

0 commit comments

Comments
 (0)