fix: previewFields (#3293)

This commit is contained in:
katherinehhh 2024-01-01 17:10:12 +08:00 committed by GitHub
parent 318b433482
commit cc251b3222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,7 @@ const PreviewCom = (props) => {
const item = dataSource[index];
return (
<Input
value={item?.uiSchema?.title || text}
defaultValue={item?.uiSchema?.title || text}
onChange={(e) =>
handleFieldChange(
{ ...item, uiSchema: { ...item?.uiSchema, title: e.target.value, rawTitle: e.target.value } },