mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
Merge pull request #436 from Demonthos/fix_remove_style
remove style attributes correctly for the js interpreter
This commit is contained in:
commit
0dbdaf1973
1 changed files with 3 additions and 1 deletions
|
@ -140,7 +140,9 @@ export class Interpreter {
|
|||
RemoveAttribute(root, field, ns) {
|
||||
const name = field;
|
||||
const node = this.nodes[root];
|
||||
if (ns !== null || ns !== undefined) {
|
||||
if (ns == "style") {
|
||||
node.style.removeProperty(name);
|
||||
} else if (ns !== null || ns !== undefined) {
|
||||
node.removeAttributeNS(ns, name);
|
||||
} else if (name === "value") {
|
||||
node.value = "";
|
||||
|
|
Loading…
Reference in a new issue