update with AttritubeValue

This commit is contained in:
demonthos committed 2022-05-07 13:56:11 -05:00
1 parent 3cba79d835
commit 31c7907f25
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ impl NodeDepState for PreventDefault {
let new = match node
.attributes()
.find(|a| a.name == "dioxus-prevent-default")
.map(|a| a.value)
.and_then(|a| a.value.as_text())
{
Some("onfocus") => PreventDefault::Focus,
Some("onkeypress") => PreventDefault::KeyPress,