mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] blockdom: ignore attributes with undefined value
This commit is contained in:
committed by
Aaron Bohy
parent
14a6289f60
commit
63fbcf99fd
@@ -16,7 +16,7 @@ const wordRegexp = /\s+/;
|
||||
|
||||
export function createAttrUpdater(attr: string): Setter<HTMLElement> {
|
||||
return function (this: HTMLElement, value: any) {
|
||||
if (value !== false) {
|
||||
if (value !== false && value !== undefined) {
|
||||
setAttribute.call(this, attr, value === true ? "" : value);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user