material-react-table-narender 2.13.7 → 2.13.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.esm.js +12 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/locales/te.ts +96 -0
- package/src/utils/cell.utils.ts +12 -0
package/dist/index.esm.js
CHANGED
@@ -517,9 +517,18 @@ const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement
|
|
517
517
|
const autocomplete = currentCell.querySelector('.MuiAutocomplete-root input[type="text"]');
|
518
518
|
// Check if the autocomplete input exists and is focused
|
519
519
|
if (autocomplete && document.activeElement === autocomplete) {
|
520
|
-
|
521
|
-
|
522
|
-
|
520
|
+
if (event.key === 'ArrowDown') {
|
521
|
+
// Do something with the autocomplete input
|
522
|
+
console.log('Autocomplete input found and is focused:', autocomplete);
|
523
|
+
return; // Exit if it's an Autocomplete and it is focused
|
524
|
+
}
|
525
|
+
if (event.key === 'ArrowUp') {
|
526
|
+
// check if the autocomplete is open
|
527
|
+
const autocompleteList = currentCell.querySelector('.MuiAutocomplete-popper');
|
528
|
+
if (autocompleteList) {
|
529
|
+
return;
|
530
|
+
}
|
531
|
+
}
|
523
532
|
}
|
524
533
|
// Additional logic if not an Autocomplete or not focused
|
525
534
|
}
|