Skip to content

Commit

Permalink
fix: Correctly show parent nodes during search (#183)
Browse files Browse the repository at this point in the history
Closes #155
  • Loading branch information
mrchief authored Oct 5, 2018
1 parent d196d44 commit 7c96f1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion docs/bundle.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/tree/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import React, { Component } from 'react'
import TreeNode from '../tree-node'

const shouldRenderNode = (node, searchModeOn, data) => {
if (node.hide) return false
if (searchModeOn || node.expanded) return true

const parent = node._parent && data.get(node._parent)
Expand Down

0 comments on commit 7c96f1f

Please sign in to comment.