Skip to content

Commit d76c016

Browse files
authored
feat(ui): Change <DropdownMenu> to expose open/close actions in render func (#13443)
This allows components that use `<DropdownMenu>` to be able to control the menu visibility
1 parent 905564a commit d76c016

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sentry/static/sentry/app/components/dropdownMenu.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ class DropdownMenu extends React.Component {
363363
getRootProps: this.getRootProps,
364364
getActorProps: this.getActorProps,
365365
getMenuProps: this.getMenuProps,
366+
actions: {
367+
open: this.handleOpen,
368+
close: this.handleClose,
369+
},
366370
});
367371
}
368372
}

0 commit comments

Comments
 (0)