mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 12:43:08 +00:00
fix: empty values on desktop
This commit is contained in:
parent
0981828167
commit
a6cbe233b7
3 changed files with 3 additions and 4 deletions
|
@ -99,8 +99,6 @@ impl DesktopController {
|
|||
view.evaluate_script(&format!("window.interpreter.handleEdits({})", edit))
|
||||
.unwrap();
|
||||
}
|
||||
} else {
|
||||
println!("waiting for ready");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,8 +23,7 @@ impl IpcMessage {
|
|||
}
|
||||
|
||||
pub(crate) fn parse_ipc_message(payload: &str) -> Option<IpcMessage> {
|
||||
let mm = serde_json::from_str(payload);
|
||||
match mm {
|
||||
match serde_json::from_str(payload) {
|
||||
Ok(message) => Some(message),
|
||||
Err(e) => {
|
||||
log::error!("could not parse IPC message, error: {e}");
|
||||
|
|
|
@ -486,6 +486,8 @@ pub mod on {
|
|||
#[derive(Debug)]
|
||||
pub struct FormData {
|
||||
pub value: String,
|
||||
|
||||
#[serde(default)]
|
||||
pub values: HashMap<String, String>,
|
||||
/* DOMEvent: Send + SyncTarget relatedTarget */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue