diff --git a/frontend/src/ts/components/ui/form/InputField.tsx b/frontend/src/ts/components/ui/form/InputField.tsx index 75074d3b5071..2201646cd2db 100644 --- a/frontend/src/ts/components/ui/form/InputField.tsx +++ b/frontend/src/ts/components/ui/form/InputField.tsx @@ -70,7 +70,7 @@ export function InputField(props: { autocomplete={props.autocomplete} name={props.field().name as string} value={convertValueToString(props.field().state.value)} - onBlur={() => { + onBlur={(e) => { if ( props.resetToDefaultIfEmptyOnBlur && (props.field().state.value === undefined || @@ -83,6 +83,9 @@ export function InputField(props: { } shakeItIfYouWantIt(); props.field().handleBlur(); + e.currentTarget.value = convertValueToString( + props.field().state.value, + ); }} onInput={(e) => { const value: unknown = convertStringToValue(