feat: arbitrary attributes

This commit is contained in:
Jonathan Kelley committed 2022-05-05 16:50:33 -04:00
1 parent f2c48c5d90
commit 356f37e9ee
7 files changed
+298 -9

No files matched your search

+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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)
}
}