Explorar o código

change prevent default to listen to tab index

Evan Almloff %!s(int64=3) %!d(string=hai) anos
pai
achega
749150e22d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/tui/src/focus.rs

+ 1 - 1
packages/tui/src/focus.rs

@@ -67,7 +67,7 @@ impl NodeDepState for Focus {
         let new = Focus {
             pass_focus: !node
                 .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") {
                 if let Ok(index) = a.value.parse::<i32>() {
                     if index < 0 {