🐛 Dioxus Props shall implement PartialEq and Clone traits
This commit is contained in:
@@ -10,7 +10,7 @@ turf::style_sheet!("src/ui/components/text_input.scss");
|
||||
pub trait InputPropsData {}
|
||||
|
||||
#[derive(Props, Clone, PartialEq)]
|
||||
pub struct InputProps<D: InputPropsData + 'static + std::cmp::PartialEq> {
|
||||
pub struct InputProps<D: InputPropsData + 'static + std::cmp::PartialEq + std::clone::Clone> {
|
||||
value: Option<String>,
|
||||
placeholder: Option<String>,
|
||||
oninput: Option<EventHandler<Event<FormData>>>,
|
||||
|
Reference in New Issue
Block a user