update dependencies

This commit is contained in:
Cory LaViska
2024-12-02 13:44:53 -05:00
parent 670a5982f3
commit 0c8348dc70
5 changed files with 2841 additions and 1906 deletions

View File

@@ -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();

View File

@@ -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);