Skip to content

Commit

Permalink
Merge pull request #1908 from EnablingLogic/bugfix/1877-webparttitle-…
Browse files Browse the repository at this point in the history
…control-fails-to-update-after-initial-save

Fix #1877: WebPartTitle Control Fails to Update After Initial Save
  • Loading branch information
joelfmrodrigues authored Dec 11, 2024
2 parents c845130 + 551bd98 commit a7fff4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/webPartTitle/WebPartTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class WebPartTitle extends React.Component<IWebPartTitleProps, {}> {
<div className={styles.webPartTitle} style={{ color: color }}>
{
this.props.displayMode === DisplayMode.Edit && (
<textarea placeholder={this.props.placeholder ? this.props.placeholder : strings.WebPartTitlePlaceholder} aria-label={strings.WebPartTitleLabel} onChange={this._onChange} value={this.props.title} />
<textarea placeholder={this.props.placeholder ? this.props.placeholder : strings.WebPartTitlePlaceholder} aria-label={strings.WebPartTitleLabel} onChange={this._onChange} defaultValue={this.props.title} />
)
}

Expand Down

0 comments on commit a7fff4f

Please sign in to comment.