Skip to content

Commit b67877b

Browse files
fix: mark menuAlignment as optional in MenuButton (#18659)
Co-authored-by: Riddhi Bansal <41935566+riddhybansal@users.noreply.github.com>
1 parent 95fb301 commit b67877b

File tree

1 file changed

+1
-2
lines changed
  • packages/react/src/components/MenuButton

1 file changed

+1
-2
lines changed

packages/react/src/components/MenuButton/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export interface MenuButtonProps extends ComponentProps<'div'> {
7070
/**
7171
* Experimental property. Specify how the menu should align with the button element
7272
*/
73-
menuAlignment: MenuAlignment;
73+
menuAlignment?: MenuAlignment;
7474

7575
/**
7676
* Specify the size of the button and menu.
@@ -248,7 +248,6 @@ MenuButton.propTypes = {
248248
/**
249249
* Experimental property. Specify how the menu should align with the button element
250250
*/
251-
// @ts-ignore-next-line -- avoid spurious (?) TS2322 error
252251
menuAlignment: PropTypes.oneOf([
253252
'top',
254253
'top-start',

0 commit comments

Comments
 (0)