Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…dropdown-tree-select into developTemp
  • Loading branch information
ellinge committed Apr 1, 2019
2 parents 29c2539 + dd651d9 commit 0c0ccf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/tree/index.js
Expand Up @@ -70,8 +70,7 @@ class Tree extends Component {
const currentId = props.activeDescendant.replace(/_li$/, '')
const focusIndex = this.allVisibleNodes.findIndex(n => n.key === currentId) + 1
this.currentPage = focusIndex > 0 ? Math.ceil(focusIndex / this.props.pageSize) : 1
}
else {
} else {
this.currentPage = 1
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/nodeVisitor.js
Expand Up @@ -25,7 +25,7 @@ const getNodesMatching = (tree, nodePredicate) => {
return nodes
}

const getVisibleNodes = (tree, getItemById, markSubTreeOnNonExpanded) =>
const getVisibleNodes = (tree, getItemById, markSubTreeOnNonExpanded) =>
getNodesMatching(tree, (node, key, visited) => {
if (markSubTreeOnNonExpanded && node._children && node._children.length && node.expanded !== true) {
markSubTreeVisited(node, visited, getItemById)
Expand Down

0 comments on commit 0c0ccf2

Please sign in to comment.