mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] blockdom: undefined properties are treated as empty strings
This commit is contained in:
committed by
Samuel Degueldre
parent
804ad3c35e
commit
3536f41f00
@@ -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 || "";
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user