mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
e57e2ee378
Previously, having a leading or trailing space caused HTMLElement.classList.add to be called with an empty string (because we are splitting on whitespace), which is not allowed and caused a crash. This commit fixes that by trimming the keys of the class object in the same way that we already do it for class strings.