Skip to content

Commit 58f0029

Browse files
committed
fix
1 parent 6e08f0c commit 58f0029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/dom/elements/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export function warn_if_attribute(element, name) {
146146
*/
147147
export function warn_if_property(element, name) {
148148
const attributes = /** @type {string} */ (
149-
/** @type {any} */ (element.constructor).observedAttributes
149+
/** @type {any} */ (element.constructor).observedAttributes ?? []
150150
);
151151

152152
if (get_setters(element).includes(name) && !attributes.includes(name)) {

0 commit comments

Comments
 (0)