From a2a18c12c02afad6bb2774ffe29c731933fd8655 Mon Sep 17 00:00:00 2001 From: FlipWarthog <83613837+FlipWarthog@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:19:07 -0400 Subject: [PATCH] Fix #5094: SelectButtion AllowEmpty not working (#5095) --- components/lib/selectbutton/SelectButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/selectbutton/SelectButton.js b/components/lib/selectbutton/SelectButton.js index 1673906b0c..98c092d519 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; }