@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.cjs.js CHANGED
@@ -19613,16 +19613,16 @@ var Dropdown = function Dropdown(_ref8) {
19613
19613
  };
19614
19614
 
19615
19615
  var handleItemSelection = function handleItemSelection(evt, choice, i) {
19616
- disabledValues.includes(choice.value) ? function (evt) {
19617
- return evt.preventDefault();
19618
- } : function () {
19616
+ if (disabledValues.includes(choice.value)) {
19617
+ evt.preventDefault();
19618
+ } else {
19619
19619
  setSelectedRef(optionRefs.current[i]);
19620
19620
  onSelect(choice.value);
19621
19621
 
19622
19622
  if (isOpen) {
19623
19623
  _onClick();
19624
19624
  }
19625
- };
19625
+ }
19626
19626
  };
19627
19627
 
19628
19628
  React.useEffect(function () {