Skip to content

Commit 22ff6b0

Browse files
authored
Fix regression in DropdownMenu dismissal (#751)
1 parent e45113b commit 22ff6b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/dropdownmenu/DropdownMenu.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ const DropdownMenu = props => {
6464
? 'end'
6565
: direction
6666
}
67+
onToggle={(show, event) => {
68+
if (!event || event.source !== 'select') {
69+
setDropdownOpen(show);
70+
}
71+
}}
6772
align={align_end ? 'end' : right ? 'end' : 'start'}
6873
{...omit(['setProps'], otherProps)}
6974
data-dash-is-loading={

0 commit comments

Comments
 (0)