diff --git a/components/dropdown/dropdown-button.tsx b/components/dropdown/dropdown-button.tsx index 3a90d26b10..225aa1ae6a 100644 --- a/components/dropdown/dropdown-button.tsx +++ b/components/dropdown/dropdown-button.tsx @@ -70,7 +70,7 @@ const DropdownButton: DropdownButtonInterface = props => { } = props; const prefixCls = getPrefixCls('dropdown-button', customizePrefixCls); - const dropdownProps = { + const dropdownProps: DropdownProps = { align, overlay, disabled, @@ -82,7 +82,7 @@ const DropdownButton: DropdownButtonInterface = props => { overlayClassName, overlayStyle, destroyPopupOnHide, - } as DropdownProps; + }; if ('open' in props) { dropdownProps.open = open; @@ -113,7 +113,7 @@ const DropdownButton: DropdownButtonInterface = props => { const rightButton =