mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 02:59:13 +00:00
update dependencies
This commit is contained in:
@@ -130,8 +130,8 @@ export class SubmenuController implements ReactiveController {
|
||||
} else {
|
||||
this.enableSubmenu(false);
|
||||
this.host.updateComplete.then(() => {
|
||||
if (menuItems![0] instanceof HTMLElement) {
|
||||
menuItems![0].focus();
|
||||
if (menuItems[0] instanceof HTMLElement) {
|
||||
menuItems[0].focus();
|
||||
}
|
||||
});
|
||||
this.host.requestUpdate();
|
||||
|
||||
@@ -35,7 +35,7 @@ export const defaultValue =
|
||||
if (name === attributeName) {
|
||||
const converter = options.converter || defaultConverter;
|
||||
const fromAttribute =
|
||||
typeof converter === 'function' ? converter : converter?.fromAttribute ?? defaultConverter.fromAttribute;
|
||||
typeof converter === 'function' ? converter : (converter?.fromAttribute ?? defaultConverter.fromAttribute);
|
||||
|
||||
const newValue: unknown = fromAttribute!(value, options.type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user