material-react-table-narender 2.13.10 → 2.13.11

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -591,24 +591,24 @@ const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement
591
591
  const button = currentCell.querySelector('button');
592
592
  const autocomplete = currentCell.querySelector('.MuiAutocomplete-root input[type="text"]');
593
593
  // Focus the appropriate element
594
- if (input) {
594
+ if (autocomplete) {
595
+ autocomplete.focus();
596
+ (_j = autocomplete.select) === null || _j === void 0 ? void 0 : _j.call(autocomplete);
597
+ }
598
+ else if (input) {
595
599
  input.focus();
596
- (_j = input.select) === null || _j === void 0 ? void 0 : _j.call(input);
600
+ (_k = input.select) === null || _k === void 0 ? void 0 : _k.call(input);
597
601
  }
598
602
  else if (select) {
599
603
  select.focus();
600
604
  }
601
605
  else if (checkbox) {
602
606
  checkbox.focus();
603
- checkbox.click();
607
+ // checkbox.click();
604
608
  }
605
609
  else if (button) {
606
610
  button.focus();
607
- button.click();
608
- }
609
- else if (autocomplete) {
610
- autocomplete.focus();
611
- (_k = autocomplete.select) === null || _k === void 0 ? void 0 : _k.call(autocomplete);
611
+ // button.click();
612
612
  }
613
613
  }
614
614
  }