material-react-table-narender 2.13.7 → 2.13.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.esm.js +11 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -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 +11 -0
package/dist/index.js
CHANGED
@@ -608,9 +608,17 @@ 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
|
+
const popper = document.querySelector('.MuiPopper-root');
|
618
|
+
if (popper && getComputedStyle(popper).visibility === 'visible') {
|
619
|
+
return;
|
620
|
+
}
|
621
|
+
}
|
614
622
|
}
|
615
623
|
// Additional logic if not an Autocomplete or not focused
|
616
624
|
}
|