push history state
Build and Push Image / build-and-push (push) Successful in 5m12s

This commit is contained in:
2026-04-10 01:15:51 -04:00
parent dd8faf8038
commit ec0c6a3487
3 changed files with 31 additions and 8 deletions
+7 -1
View File
@@ -1,7 +1,8 @@
use dioxus::prelude::*;
#[component]
pub fn Search(query: String, oninput: Option<EventHandler<String>>) -> Element {
pub fn Search(query: String, oninput: Option<EventHandler<String>>, onchange: Option<EventHandler<String>>) -> Element
{
rsx! {
div { class: "searchBar",
input {
@@ -13,6 +14,11 @@ pub fn Search(query: String, oninput: Option<EventHandler<String>>) -> Element {
handler.call(event.value());
}
},
onchange: move |event|{
if let Some(handler) = onchange {
handler.call(event.value());
}
}
}
}
}