material-react-table-narender 2.13.7 → 2.13.8
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 +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.js
CHANGED
@@ -608,9 +608,18 @@ const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement
|
|
608
608
|
const autocomplete = currentCell.querySelector('.MuiAutocomplete-root input[type="text"]');
|
609
609
|
// Check if the autocomplete input exists and is focused
|
610
610
|
if (autocomplete && document.activeElement === autocomplete) {
|
611
|
-
|
612
|
-
|
613
|
-
|
611
|
+
if (event.key === 'ArrowDown') {
|
612
|
+
// Do something with the autocomplete input
|
613
|
+
console.log('Autocomplete input found and is focused:', autocomplete);
|
614
|
+
return; // Exit if it's an Autocomplete and it is focused
|
615
|
+
}
|
616
|
+
if (event.key === 'ArrowUp') {
|
617
|
+
// check if the autocomplete is open
|
618
|
+
const autocompleteList = currentCell.querySelector('.MuiAutocomplete-popper');
|
619
|
+
if (autocompleteList) {
|
620
|
+
return;
|
621
|
+
}
|
622
|
+
}
|
614
623
|
}
|
615
624
|
// Additional logic if not an Autocomplete or not focused
|
616
625
|
}
|