feat(frontend): ignores invalid input

chore: removes unused dependencies
This commit is contained in:
itsscb 2024-08-28 11:11:41 +02:00 committed by GitHub
commit 8524dee826
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 9 deletions

View File

@ -9,10 +9,8 @@ http = "1.1.0"
rand = "0.8.5"
shuttle-axum = "0.45.0"
shuttle-runtime = "0.45.0"
tokio = "1.28.2"
tower-http = { version = "0.5.2", features = ["fs", "cors"] }
tracing = "0.1.40"
yew = "0.21.0"
[workspace]

View File

@ -13,13 +13,8 @@ web-sys = { version = "0.3.69", features = [
] }
yew = { version = "0.21.0", features = ["csr"] }
yew-router = { version = "0.18.0" }
gloo-console = "0.3.0"
wasm-bindgen-futures = "0.4.43"
wasm-bindgen = "0.2.93"
yewdux = "0.10.0"
surrealdb = "1.5.4"
gloo-net = "0.6.0"
serde = { version = "1.0.198", features = ["derive"] }
serde_json = "1.0.116"
regex = "1.10.4"
tracing = "0.1.40"
serde = { version = "1.0.198", features = ["derive"] }

View File

@ -287,7 +287,13 @@ pub fn Home() -> Html {
set_focus(index);
}
},
_ => {},
_ => {
let index = *curr_index;
let mut values = (*input_values).clone();
values[index] = String::new();
input_values.set(values);
},
}
})
};