@aurora-ds/components 1.4.0 → 1.4.1
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/cjs/index.js +9 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +9 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2016,7 +2016,15 @@ const useMenu = ({ open, onClose, anchorEl, minWidth }) => {
|
|
|
2016
2016
|
setFocusedIndex(count - 1);
|
|
2017
2017
|
}
|
|
2018
2018
|
},
|
|
2019
|
-
Enter: () => {
|
|
2019
|
+
Enter: (e) => {
|
|
2020
|
+
e.preventDefault();
|
|
2021
|
+
const options = getOptions();
|
|
2022
|
+
if (focusedIndex >= 0) {
|
|
2023
|
+
options[focusedIndex]?.click();
|
|
2024
|
+
}
|
|
2025
|
+
},
|
|
2026
|
+
' ': (e) => {
|
|
2027
|
+
e.preventDefault();
|
|
2020
2028
|
const options = getOptions();
|
|
2021
2029
|
if (focusedIndex >= 0) {
|
|
2022
2030
|
options[focusedIndex]?.click();
|