@thecb/components 6.0.0-beta.16 → 6.0.0-beta.17

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
@@ -19408,7 +19408,7 @@ var fallbackValues$e = {
19408
19408
  var IconWrapper = styled__default.div.withConfig({
19409
19409
  displayName: "Dropdown__IconWrapper",
19410
19410
  componentId: "sc-pn6m0h-0"
19411
- })(["position:absolute;display:flex;flex-direction:column;justify-content:center;transition:transform 0.3s ease;", " top:20px;right:12px;"], function (_ref) {
19411
+ })(["position:absolute;display:flex;flex-direction:column;justify-content:center;transition:transform 0.3s ease;", ";top:20px;right:12px;"], function (_ref) {
19412
19412
  var open = _ref.open;
19413
19413
  return open ? "transform: rotate(-180deg)" : "";
19414
19414
  });
@@ -19529,7 +19529,7 @@ var Dropdown = function Dropdown(_ref8) {
19529
19529
  var onKeyDown = function onKeyDown(e) {
19530
19530
  var _optionRefs$current$l, _optionRefs$current;
19531
19531
 
19532
- console.log("current input value", inputValue);
19532
+ console.log("current input value top of keyDown", inputValue);
19533
19533
  var key = e.key,
19534
19534
  keyCode = e.keyCode;
19535
19535
  var focus = document.activeElement;
@@ -19607,6 +19607,7 @@ var Dropdown = function Dropdown(_ref8) {
19607
19607
 
19608
19608
  if (keyCode > 64 && keyCode < 91 || keyCode == 32 || keyCode == 189) {
19609
19609
  e.preventDefault();
19610
+ console.log("current input value inside keydown if", inputValue);
19610
19611
  setInputValue(inputValue + key);
19611
19612
  }
19612
19613
  };
@@ -19685,7 +19686,7 @@ var Dropdown = function Dropdown(_ref8) {
19685
19686
  }
19686
19687
  },
19687
19688
  onChange: function onChange(e) {
19688
- console.log("current input value", inputValue);
19689
+ console.log("current input value onChange", inputValue);
19689
19690
  console.log("input change event", e.target);
19690
19691
  console.log("input change event value", e.target.value);
19691
19692
  setInputValue(e.target.value);
@@ -19729,6 +19730,10 @@ var Dropdown = function Dropdown(_ref8) {
19729
19730
  } : function () {
19730
19731
  setSelectedRef(optionRefs.current[i]);
19731
19732
  onSelect(choice.value);
19733
+
19734
+ if (isOpen) {
19735
+ _onClick();
19736
+ }
19732
19737
  },
19733
19738
  selected: choice.value === value,
19734
19739
  "aria-selected": choice.value === value,