From b0e59cc670238244e0a0a53229d7ca8a0392f308 Mon Sep 17 00:00:00 2001 From: Melloware Date: Wed, 29 Nov 2023 08:11:09 -0500 Subject: [PATCH] Fix #5447: TreeSelect don't close panel on unselect (#5449) --- components/lib/treeselect/TreeSelect.js | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lib/treeselect/TreeSelect.js b/components/lib/treeselect/TreeSelect.js index a1b6cc3784..23900bc2b5 100644 --- a/components/lib/treeselect/TreeSelect.js +++ b/components/lib/treeselect/TreeSelect.js @@ -140,6 +140,7 @@ export const TreeSelect = React.memo( const onNodeUnselect = (node) => { props.onNodeUnselect && props.onNodeUnselect(node); + isCheckboxSelectionMode && node.originalEvent.stopPropagation(); }; const onNodeToggle = (e) => {