Skip to content

Commit e18b928

Browse files
authored
Merge pull request #1155 from wonderplayer/patch-1
Update DynamicField.tsx
2 parents 59d8174 + 4e7d0f0 commit e18b928

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controls/dynamicForm/dynamicField/DynamicField.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,15 @@ export class DynamicField extends React.Component<IDynamicFieldProps, IDynamicFi
126126

127127
case 'Note':
128128
if (isRichText) {
129+
const value = this.props.newValue ? this.props.newValue : defaultValue;
129130
return <div className={styles.richText}>
130131
<div className={styles.titleContainer}>
131132
<Icon className={styles.fieldIcon} iconName={"AlignLeft"} />
132133
{labelEl}
133134
</div>
134135
<RichText
135136
placeholder={placeholder}
136-
value={defaultValue}
137+
value={value}
137138
className={styles.feildDisplay}
138139
onChange={(newText) => { this.onChange(newText); return newText; }}
139140
isEditMode={disabled}>

0 commit comments

Comments
 (0)