change prevent default to listen to tab index
This commit is contained in:
1 parent
4aaf790ae9
commit
749150e22d
1 file changed
+1
-1
@@ -67,7 +67,7 @@ impl NodeDepState for Focus {
|
|||||||
let new = Focus {
|
let new = Focus {
|
||||||
pass_focus: !node
|
pass_focus: !node
|
||||||
.attributes()
|
.attributes()
|
||||||
.any(|a| a.name == "dioxus-prevent-default" && a.value.trim() == "true"),
|
.any(|a| a.name == "dioxus-prevent-default" && a.value.trim() == "keydown"),
|
||||||
level: if let Some(a) = node.attributes().find(|a| a.name == "tabindex") {
|
level: if let Some(a) = node.attributes().find(|a| a.name == "tabindex") {
|
||||||
if let Ok(index) = a.value.parse::<i32>() {
|
if let Ok(index) = a.value.parse::<i32>() {
|
||||||
if index < 0 {
|
if index < 0 {
|
||||||
|
|||||||
Reference in new issue
Block a user