None => default.clone(),
};
- let valid = Ok(());
-
ManagedFieldState {
value: value.into(),
- valid, // fixme: remove
+ valid: Ok(()),
default: default.into(),
radio_group: props.radio_group,
unique: false,
ManagedFieldState {
value: value,
- valid: Ok(()), // fixme
+ valid: Ok(()),
default,
radio_group: false,
unique: false,
}
/// Returns the initial field setup.
+ ///
+ /// # Note
+ ///
+ /// The [ManagedFieldState::valid] property is ignored and
+ /// immediately overwritten by a call to the validation function.
fn setup(props: &Self::Properties) -> ManagedFieldState;
/// Create the component state.
ManagedFieldState {
value: value,
- valid: Ok(()), // fixme:
+ valid: Ok(()),
default,
radio_group: false,
unique: false,
ManagedFieldState {
value,
- valid: Ok(()), //fixme
+ valid: Ok(()),
default,
radio_group: false,
unique: false,
ManagedFieldState {
value: value,
- valid: Ok(()), // fixme
+ valid: Ok(()),
default,
radio_group: false,
unique: false,
ManagedFieldState {
value: value,
- valid: Ok(()), // fixme
+ valid: Ok(()),
default,
radio_group: false,
unique: false,
ManagedFieldState {
value: value.into(),
- valid: Ok(()), //fixme
+ valid: Ok(()),
default: default.into(),
radio_group: props.radio_group,
unique: true,