Skip to content

Commit f139cc1

Browse files
committed
Prevent dropdownmenu from dismissing if toggle=false
1 parent 5434c47 commit f139cc1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/dropdownmenu/DropdownMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ DropdownMenu.propTypes = {
153153

154154
/**
155155
* Set the color of the DropdownMenu toggle. Available options are: 'primary',
156-
* 'secondary', 'success', 'warning', 'danger', 'info', 'link' or any valid CSS
156+
* 'secondary', 'success', 'warning', 'danger', 'info', 'link' or any valid CSS
157157
* color of your choice (e.g. a hex code, a decimal code or a CSS color name)
158158
* Default: 'secondary'
159159
*/

src/components/dropdownmenu/DropdownMenuItem.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const DropdownMenuItem = props => {
4848
href={disabled ? null : href}
4949
disabled={disabled}
5050
target={useLink && target}
51+
toggle={toggle}
5152
{...omit(['setProps'], otherProps)}
5253
data-dash-is-loading={
5354
(loading_state && loading_state.is_loading) || undefined

0 commit comments

Comments
 (0)