fix dioxus-tui events

This commit is contained in:
Evan Almloff committed 2023-09-06 12:51:02 -05:00
1 parent 0ab7a02777
commit d06e64e5ad
19 files changed
+221 -21

No files matched your search

+4 -10
View File
@@ -57,18 +57,18 @@ impl EventData {
EventData::Keyboard(k) => Rc::new(k),
EventData::Focus(f) => Rc::new(f),
EventData::Wheel(w) => Rc::new(w),
EventData::Form(f) => Rc::new(f.into_html()),
EventData::Form(f) => Rc::new(f),
}
}
}
#[derive(Clone, Debug, PartialEq)]
pub struct FormData {
pub value: String,
pub(crate) value: String,
pub values: HashMap<String, Vec<String>>,
pub(crate) values: HashMap<String, Vec<String>>,
pub files: Option<Files>,
pub(crate) files: Option<Files>,
}
impl HasFormData for FormData {
@@ -85,12 +85,6 @@ impl HasFormData for FormData {
}
}
impl FormData {
fn into_html(self) -> dioxus_html::FormData {
dioxus_html::FormData::new(self)
}
}
#[derive(Clone, Debug, PartialEq)]
pub struct Files {
files: FxHashMap<String, File>,