fix: removed files
This commit is contained in:
1 parent
6a89a0fffc
commit
a81bbb83d6
7 files changed
+1
-11
No files matched your search
@@ -32,7 +32,6 @@ pub(crate) fn Button<'a>(cx: Scope<'a, ButtonProps>) -> Element<'a> {
|
|||||||
callback.call(FormData {
|
callback.call(FormData {
|
||||||
value: text.to_string(),
|
value: text.to_string(),
|
||||||
values: HashMap::new(),
|
values: HashMap::new(),
|
||||||
files: None,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
state.set(new_state);
|
state.set(new_state);
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ pub(crate) fn CheckBox<'a>(cx: Scope<'a, CheckBoxProps>) -> Element<'a> {
|
|||||||
"on".to_string()
|
"on".to_string()
|
||||||
},
|
},
|
||||||
values: HashMap::new(),
|
values: HashMap::new(),
|
||||||
files: None,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
state.set(new_state);
|
state.set(new_state);
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ pub(crate) fn NumbericInput<'a>(cx: Scope<'a, NumbericInputProps>) -> Element<'a
|
|||||||
input_handler.call(FormData {
|
input_handler.call(FormData {
|
||||||
value: text,
|
value: text,
|
||||||
values: HashMap::new(),
|
values: HashMap::new(),
|
||||||
files: None,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -99,7 +99,6 @@ pub(crate) fn Password<'a>(cx: Scope<'a, PasswordProps>) -> Element<'a> {
|
|||||||
input_handler.call(FormData{
|
input_handler.call(FormData{
|
||||||
value: text.clone(),
|
value: text.clone(),
|
||||||
values: HashMap::new(),
|
values: HashMap::new(),
|
||||||
files: None
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,6 @@ pub(crate) fn Slider<'a>(cx: Scope<'a, SliderProps>) -> Element<'a> {
|
|||||||
oninput.call(FormData {
|
oninput.call(FormData {
|
||||||
value,
|
value,
|
||||||
values: HashMap::new(),
|
values: HashMap::new(),
|
||||||
files: None,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -95,7 +95,6 @@ pub(crate) fn TextBox<'a>(cx: Scope<'a, TextBoxProps>) -> Element<'a> {
|
|||||||
input_handler.call(FormData{
|
input_handler.call(FormData{
|
||||||
value: text.clone(),
|
value: text.clone(),
|
||||||
values: HashMap::new(),
|
values: HashMap::new(),
|
||||||
files: None
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -331,11 +331,7 @@ fn read_input_to_data(target: Element) -> Rc<FormData> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rc::new(FormData {
|
Rc::new(FormData { value, values })
|
||||||
value,
|
|
||||||
values,
|
|
||||||
files: None,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn walk_event_for_id(event: &web_sys::Event) -> Option<(ElementId, web_sys::Element)> {
|
fn walk_event_for_id(event: &web_sys::Event) -> Option<(ElementId, web_sys::Element)> {
|
||||||
|
|||||||
Reference in new issue
Block a user