feat: arbitrary attributes
This commit is contained in:
1 parent
f2c48c5d90
commit
356f37e9ee
7 files changed
+298
-9
No files matched your search
@@ -14,7 +14,7 @@ keywords = ["dom", "ui", "gui", "react", "wasm"]
|
||||
dioxus-core = { path = "../core", version = "^0.2.1" }
|
||||
dioxus-html = { path = "../html", version = "^0.2.1", features = ["wasm-bind"] }
|
||||
dioxus-interpreter-js = { path = "../interpreter", version = "^0.2.1", features = [
|
||||
"web",
|
||||
"web"
|
||||
] }
|
||||
|
||||
js-sys = "0.3.56"
|
||||
|
||||
@@ -146,7 +146,7 @@ impl WebsysDom {
|
||||
value,
|
||||
ns,
|
||||
} => {
|
||||
let value = serde_wasm_bindgen::to_value(value).unwrap();
|
||||
let value = serde_wasm_bindgen::to_value(&value).unwrap();
|
||||
self.interpreter.SetAttribute(root, field, value, ns)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user