From cd3d58f07c823419665d232237e6e2eb012393ee Mon Sep 17 00:00:00 2001 From: ntnyq Date: Fri, 19 Jul 2024 14:57:57 +0800 Subject: [PATCH] fix(components): [cascader] reactive prop collapse-tags (#17449) feat(components): [cascader] reactive prop `collapse-tags` --- packages/components/cascader/src/cascader.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/components/cascader/src/cascader.vue b/packages/components/cascader/src/cascader.vue index 861c413c6f..d823aed37e 100644 --- a/packages/components/cascader/src/cascader.vue +++ b/packages/components/cascader/src/cascader.vue @@ -682,7 +682,10 @@ const getInputInnerHeight = (inputInner: HTMLElement): number => watch(filtering, updatePopperPosition) -watch([checkedNodes, isDisabled], calculatePresentTags) +watch( + [checkedNodes, isDisabled, () => props.collapseTags], + calculatePresentTags +) watch(presentTags, () => { nextTick(() => updateStyle())