pixel-react 1.13.81 → 1.13.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.cjs CHANGED
@@ -104020,12 +104020,12 @@ const getNavigateToKey = (currentNode, treeData, action) => {
104020
104020
  const childrenOfRoot = getRootChildren(treeData, currentNode);
104021
104021
  if (childrenOfRoot.length > 0) {
104022
104022
  const lastChildOfRoot = childrenOfRoot[childrenOfRoot.length - 1];
104023
- if (lastChildOfRoot?.expanded === false) {
104023
+ if (lastChildOfRoot?.expandedAll === false || lastChildOfRoot?.expanded === false) {
104024
104024
  return {
104025
104025
  navigateTo: lastChildOfRoot?.key
104026
104026
  };
104027
104027
  }
104028
- if (lastChildOfRoot?.expanded === true) {
104028
+ if (lastChildOfRoot?.expandedAll === true || lastChildOfRoot?.expanded === true) {
104029
104029
  const lastChildExpand = getAllChildrenNodesUsingSearchKey(treeData, lastChildOfRoot?.searchKey);
104030
104030
  return {
104031
104031
  navigateTo: lastChildExpand[lastChildExpand.length - 1]?.key