Skip to content

Commit

Permalink
Change defaultValue back to value field
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjo118 committed Feb 18, 2025
1 parent 4a7e314 commit 97d9b9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const ValidatedIntegerInput: FunctionComponent<Props> = props => {
autoCapitalize="none"
key="control"
style={hasErrors() ? { ...styleSheet.settingControl, ...styleSheet.invalidInput } : styleSheet.settingControl}
defaultValue={valueState}
value={valueState}
onChangeText={newValue => {
setValueState(newValue);
void props.updateSettingValue(props.settingId, validate(newValue, md, props.label) === '' ? newValue : Setting.value(props.settingId));
Expand Down

0 comments on commit 97d9b9d

Please sign in to comment.