diff --git a/components/dropdown/dropdown.tsx b/components/dropdown/dropdown.tsx index ffc160b8f3..8838592c9e 100644 --- a/components/dropdown/dropdown.tsx +++ b/components/dropdown/dropdown.tsx @@ -92,10 +92,15 @@ const Dropdown = defineComponent({ const getPrefixCls = this.configProvider.getPrefixCls; const prefixCls = getPrefixCls('dropdown', customizePrefixCls); const child = getSlot(this)[0]; - const dropdownTrigger = cloneElement(child, { - class: classNames(child?.props?.class, `${prefixCls}-trigger`), - disabled, - }); + const dropdownTrigger = cloneElement( + child, + Object.assign( + { + class: classNames(child?.props?.class, `${prefixCls}-trigger`), + }, + disabled ? { disabled } : {}, + ), + ); const triggerActions = disabled ? [] : typeof trigger === 'string' ? [trigger] : trigger; let alignPoint; if (triggerActions && triggerActions.indexOf('contextmenu') !== -1) { diff --git a/components/locale-provider/__tests__/__snapshots__/index.test.js.snap b/components/locale-provider/__tests__/__snapshots__/index.test.js.snap index e7de8ecd50..7c1beb76dc 100644 --- a/components/locale-provider/__tests__/__snapshots__/index.test.js.snap +++ b/components/locale-provider/__tests__/__snapshots__/index.test.js.snap @@ -616,9 +616,11 @@ exports[`Locale Provider should display the text as ar 1`] = ` Click to confirm
-
+ 0 عنصر +