[FIX] blockdom: undefined properties are treated as empty strings

This commit is contained in:
Géry Debongnie
2022-02-15 08:58:07 +01:00
committed by Samuel Degueldre
parent 804ad3c35e
commit 3536f41f00
4 changed files with 41 additions and 1 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ export function updateClass(this: HTMLElement, val: any, oldVal: any) {
export function makePropSetter(name: string): Setter<HTMLElement> {
return function setProp(this: HTMLElement, value: any) {
(this as any)[name] = value;
(this as any)[name] = value || "";
};
}