@thecb/components 5.11.4 → 6.0.0-beta.2

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
@@ -19514,9 +19514,13 @@ var Dropdown = function Dropdown(_ref9) {
19514
19514
  var key = e.key,
19515
19515
  keyCode = e.keyCode;
19516
19516
  var focus = document.activeElement;
19517
+ console.log("dropdown value is", value);
19518
+ console.log("focus is", focus);
19519
+ console.log("option refs are", optionRefs.current);
19517
19520
  var optionEl = optionRefs.current.find(function (ref) {
19518
19521
  return ref.current === focus;
19519
19522
  });
19523
+ console.log("option el is", optionEl);
19520
19524
 
19521
19525
  switch (key) {
19522
19526
  case "ArrowDown":
@@ -19560,6 +19564,8 @@ var Dropdown = function Dropdown(_ref9) {
19560
19564
 
19561
19565
  case "Backspace" :
19562
19566
  e.preventDefault();
19567
+ console.log("input value is", inputValue);
19568
+ console.log("new input value will be", inputValue.slice(0, -1));
19563
19569
  setInputValue(inputValue.slice(0, -1));
19564
19570
  break;
19565
19571
  }
@@ -19571,6 +19577,9 @@ var Dropdown = function Dropdown(_ref9) {
19571
19577
  };
19572
19578
 
19573
19579
  useEffect$1(function () {
19580
+ console.log("option refs in isopen useffect", optionRefs.current[0].current);
19581
+ console.log("value in isopen useffect", value);
19582
+
19574
19583
  if (isOpen && optionRefs.current[0].current) {
19575
19584
  optionRefs.current[0].current.focus();
19576
19585
  }