From d53f65b37fc9e2d6473c3279129de0f78816e841 Mon Sep 17 00:00:00 2001 From: Melloware Date: Sat, 25 Nov 2023 08:01:18 -0500 Subject: [PATCH] Fix #5393: Tree propagate icons to leaf nodes (#5394) --- components/lib/tree/Tree.js | 52 +++++++++++++++--------------- components/lib/tree/UITreeNode.js | 53 ++++++++++++++++--------------- 2 files changed, 54 insertions(+), 51 deletions(-) diff --git a/components/lib/tree/Tree.js b/components/lib/tree/Tree.js index 33335bfe93..3b60814ef8 100644 --- a/components/lib/tree/Tree.js +++ b/components/lib/tree/Tree.js @@ -341,41 +341,41 @@ export const Tree = React.memo( hostName="Tree" key={node.key || node.label} node={node} - originalOptions={props.value} - index={index} - last={last} - path={String(index)} checkboxIcon={props.checkboxIcon} - expandIcon={props.expandIcon} collapseIcon={props.collapseIcon} - disabled={props.disabled} - selectionMode={props.selectionMode} - selectionKeys={props.selectionKeys} - onSelectionChange={props.onSelectionChange} - metaKeySelection={props.metaKeySelection} contextMenuSelectionKey={props.contextMenuSelectionKey} - onContextMenuSelectionChange={props.onContextMenuSelectionChange} - onContextMenu={props.onContextMenu} - propagateSelectionDown={props.propagateSelectionDown} - propagateSelectionUp={props.propagateSelectionUp} - onExpand={props.onExpand} - onCollapse={props.onCollapse} - onSelect={props.onSelect} - onUnselect={props.onUnselect} + cx={cx} + disabled={props.disabled} + dragdropScope={props.dragdropScope} + expandIcon={props.expandIcon} expandedKeys={expandedKeys} - onToggle={onToggle} - nodeTemplate={props.nodeTemplate} - togglerTemplate={props.togglerTemplate} + index={index} isNodeLeaf={isNodeLeaf} - dragdropScope={props.dragdropScope} - onDragStart={onDragStart} + last={last} + metaKeySelection={props.metaKeySelection} + nodeTemplate={props.nodeTemplate} + onClick={props.onNodeClick} + onCollapse={props.onCollapse} + onContextMenu={props.onContextMenu} + onContextMenuSelectionChange={props.onContextMenuSelectionChange} + onDoubleClick={props.onNodeDoubleClick} onDragEnd={onDragEnd} + onDragStart={onDragStart} onDrop={onDrop} onDropPoint={onDropPoint} - onClick={props.onNodeClick} - onDoubleClick={props.onNodeDoubleClick} + onExpand={props.onExpand} + onSelect={props.onSelect} + onSelectionChange={props.onSelectionChange} + onToggle={onToggle} + onUnselect={props.onUnselect} + originalOptions={props.value} + path={String(index)} + propagateSelectionDown={props.propagateSelectionDown} + propagateSelectionUp={props.propagateSelectionUp} ptm={ptm} - cx={cx} + selectionKeys={props.selectionKeys} + selectionMode={props.selectionMode} + togglerTemplate={props.togglerTemplate} /> ); }; diff --git a/components/lib/tree/UITreeNode.js b/components/lib/tree/UITreeNode.js index 12abbac305..2926b40c73 100644 --- a/components/lib/tree/UITreeNode.js +++ b/components/lib/tree/UITreeNode.js @@ -743,40 +743,43 @@ export const UITreeNode = React.memo((props) => { ); })}