forked from mystiq/hydrogen-web
correctly map className attribute
This commit is contained in:
parent
5fae156596
commit
16d5c3279c
1 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,7 @@
|
|||
export function setAttribute(el, name, value) {
|
||||
if (name === "className") {
|
||||
name = "class";
|
||||
}
|
||||
el.setAttribute(name, value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue