Skip to content

Commit

Permalink
Fix #5094: SelectButtion AllowEmpty not working (#5095)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlipWarthog authored Oct 13, 2023
1 parent 1d06694 commit a2a18c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/selectbutton/SelectButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const SelectButton = React.memo(

let selected = isSelected(event.option);

if (selected && !(props.unselectable || props.allowEmpty)) {
if (selected && !(props.unselectable && props.allowEmpty)) {
return;
}

Expand Down

0 comments on commit a2a18c1

Please sign in to comment.