mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
fix: statement problem
This commit is contained in:
parent
e03f8ca90c
commit
dd9f0f362e
1 changed files with 2 additions and 1 deletions
|
@ -102,10 +102,11 @@ export class Interpreter {
|
|||
SetAttribute(root, field, value, ns) {
|
||||
const name = field;
|
||||
const node = this.nodes[root];
|
||||
console.log(ns);
|
||||
if (ns === "style") {
|
||||
// @ts-ignore
|
||||
node.style[name] = value;
|
||||
} else if (ns != null || ns !== undefined) {
|
||||
} else if (ns != null || ns != undefined) {
|
||||
node.setAttributeNS(ns, name, value);
|
||||
} else {
|
||||
switch (name) {
|
||||
|
|
Loading…
Reference in a new issue