Skip to content

Commit 4942022

Browse files
fix(@clayui/drop-down): fixes menuElementAttrs type bug
1 parent 55f2302 commit 4942022

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/clay-drop-down/src/DropDown.tsx

+3-6
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ import Menu from './Menu';
2828
import Search from './Search';
2929
import Section from './Section';
3030

31-
import type {
32-
AlignPoints,
33-
IPortalBaseProps,
34-
InternalDispatch,
35-
} from '@clayui/shared';
31+
import type {AlignPoints, InternalDispatch} from '@clayui/shared';
3632

3733
const {Collection} = __NOT_PUBLIC_COLLECTION;
3834

@@ -108,7 +104,8 @@ interface IProps<T>
108104
/**
109105
* Prop to pass DOM element attributes to DropDown.Menu.
110106
*/
111-
menuElementAttrs?: React.HTMLAttributes<HTMLDivElement> & IPortalBaseProps;
107+
menuElementAttrs?: React.HTMLAttributes<HTMLDivElement> &
108+
Pick<React.ComponentProps<typeof Menu>, 'containerProps'>;
112109

113110
/**
114111
* Adds utility class name `dropdown-menu-height-${height}`

0 commit comments

Comments
 (0)