@thecb/components 6.0.0-beta.18 → 6.0.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -19605,16 +19605,16 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
19605
19605
|
};
|
|
19606
19606
|
|
|
19607
19607
|
var handleItemSelection = function handleItemSelection(evt, choice, i) {
|
|
19608
|
-
disabledValues.includes(choice.value)
|
|
19609
|
-
|
|
19610
|
-
}
|
|
19608
|
+
if (disabledValues.includes(choice.value)) {
|
|
19609
|
+
evt.preventDefault();
|
|
19610
|
+
} else {
|
|
19611
19611
|
setSelectedRef(optionRefs.current[i]);
|
|
19612
19612
|
onSelect(choice.value);
|
|
19613
19613
|
|
|
19614
19614
|
if (isOpen) {
|
|
19615
19615
|
_onClick();
|
|
19616
19616
|
}
|
|
19617
|
-
}
|
|
19617
|
+
}
|
|
19618
19618
|
};
|
|
19619
19619
|
|
|
19620
19620
|
useEffect$1(function () {
|