diff --git a/components/lib/selectbutton/SelectButton.js b/components/lib/selectbutton/SelectButton.js index 28a7b69a07..1673906b0c 100644 --- a/components/lib/selectbutton/SelectButton.js +++ b/components/lib/selectbutton/SelectButton.js @@ -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; } diff --git a/components/lib/selectbutton/selectbutton.d.ts b/components/lib/selectbutton/selectbutton.d.ts index 7811e8db4e..31219be908 100644 --- a/components/lib/selectbutton/selectbutton.d.ts +++ b/components/lib/selectbutton/selectbutton.d.ts @@ -119,6 +119,7 @@ export interface SelectButtonProps extends Omit