Skip to content

Commit 8b50542

Browse files
authored
Merge pull request #1454 from SamueleFurnari/fix_required_field_error_message
Initialise changedValue with defaultValue,
2 parents e8be977 + 0c86f4e commit 8b50542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controls/dynamicForm/dynamicField/DynamicField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class DynamicField extends React.Component<IDynamicFieldProps, IDynamicFi
3232
spfxContext: { pageContext: this.props.context.pageContext }
3333
});
3434
this.state = {
35-
changedValue: props.fieldType === 'Thumbnail' ? props.fieldDefaultValue : null
35+
changedValue: props.fieldDefaultValue
3636
};
3737
}
3838

0 commit comments

Comments
 (0)