@vollowx/seele 0.7.0 → 0.7.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/package.json +1 -1
- package/src/base/menu.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vollowx/seele",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Standard Extensible Elements. A web components library that can be styled and extended freely, pre-providing components in Material Design 3.",
|
|
5
5
|
"author": "vollowx",
|
|
6
6
|
"license": "MIT",
|
package/src/base/menu.js
CHANGED
|
@@ -106,7 +106,7 @@ export class Menu extends Base {
|
|
|
106
106
|
this.$control.ariaExpanded = 'true';
|
|
107
107
|
}
|
|
108
108
|
this.popoverController.animateOpen().then(() => {
|
|
109
|
-
this.focus();
|
|
109
|
+
this.focus({ preventScroll: true });
|
|
110
110
|
this.listController.focusFirstItem();
|
|
111
111
|
});
|
|
112
112
|
}
|
|
@@ -117,7 +117,7 @@ export class Menu extends Base {
|
|
|
117
117
|
}
|
|
118
118
|
this.popoverController.animateClose().then(() => {
|
|
119
119
|
if (this.$lastFocused) {
|
|
120
|
-
this.$lastFocused.focus();
|
|
120
|
+
this.$lastFocused.focus({ preventScroll: true });
|
|
121
121
|
this.$lastFocused = null;
|
|
122
122
|
}
|
|
123
123
|
});
|