update with AttritubeValue
This commit is contained in:
1 parent
3cba79d835
commit
31c7907f25
2 files changed
+6
-2
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user