mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
correctly map className attribute
This commit is contained in:
parent
5fae156596
commit
16d5c3279c
@ -1,4 +1,7 @@
|
||||
export function setAttribute(el, name, value) {
|
||||
if (name === "className") {
|
||||
name = "class";
|
||||
}
|
||||
el.setAttribute(name, value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user