@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/esm/index.js
CHANGED
|
@@ -1996,7 +1996,15 @@ const useMenu = ({ open, onClose, anchorEl, minWidth }) => {
|
|
|
1996
1996
|
setFocusedIndex(count - 1);
|
|
1997
1997
|
}
|
|
1998
1998
|
},
|
|
1999
|
-
Enter: () => {
|
|
1999
|
+
Enter: (e) => {
|
|
2000
|
+
e.preventDefault();
|
|
2001
|
+
const options = getOptions();
|
|
2002
|
+
if (focusedIndex >= 0) {
|
|
2003
|
+
options[focusedIndex]?.click();
|
|
2004
|
+
}
|
|
2005
|
+
},
|
|
2006
|
+
' ': (e) => {
|
|
2007
|
+
e.preventDefault();
|
|
2000
2008
|
const options = getOptions();
|
|
2001
2009
|
if (focusedIndex >= 0) {
|
|
2002
2010
|
options[focusedIndex]?.click();
|