Skip to content

Commit 1f56d00

Browse files
Merge pull request #6007 from matuzalemsteles/LPD-52748
feat(@clayui/drop-down): adds target prop to high-level components
2 parents 1301585 + 164f5fd commit 1f56d00

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ const Item = ({
9595

9696
return (
9797
<DropDown.Item
98+
{...props}
9899
onClick={(event) => {
99100
if (onForward && child && label) {
100101
event.preventDefault();
@@ -115,7 +116,6 @@ const Item = ({
115116
}
116117
}}
117118
spritemap={spritemap}
118-
{...props}
119119
>
120120
{label}
121121

@@ -406,18 +406,19 @@ export type Item = {
406406
* The unique id that references the next menu.
407407
*/
408408
child?: string;
409+
title?: string;
410+
items?: Array<Item>;
409411

410412
/**
411413
* @deprecated since v3.129.0 - use `title` instead.
412414
*/
413-
title?: string;
414-
items?: Array<Item>;
415415
label?: string;
416416
name?: string;
417417
onChange?: Function;
418418
onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
419419
symbolLeft?: string;
420420
symbolRight?: string;
421+
target?: string;
421422
type?:
422423
| 'checkbox'
423424
| 'contextual'

0 commit comments

Comments
 (0)