mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +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) {
|
export function setAttribute(el, name, value) {
|
||||||
|
if (name === "className") {
|
||||||
|
name = "class";
|
||||||
|
}
|
||||||
el.setAttribute(name, value);
|
el.setAttribute(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user