Closed
Description
Category
[ ] Enhancement
[x] Bug
[ ] Question
Version
v3.19.0
Affects also previous versions.
Expected Behavior
The WebPart title should be editable every time the WebPart is in edit mode, not just during the initial setup.
Observed Behavior
- The WebPart title can only be set once, during the initial addition of the WebPart.
- The event appears to propagate correctly, but the WebPart does not re-render, leading to the observed faulty behavior.
- Note: Users have reported that this faulty behavior started appearing a couple of days ago.
- Forcing a re-render by adding this.render() resolves the issue, but this would require updating all existing components. Additionally, this requirement is not documented as mandatory.
updateProperty: (value: string) => { this.properties.title = value; this.render(); }}
Steps to Reproduce:
- Scaffold a new SPFx React solution using SPFx v1.19.0.
- Ensure you are using Node.js v18.19.1.
- Implement the
WebPartTitle
Control as per the PnP WebPartTitle documentation. - Add the WebPart to a SharePoint page.
- Publish the page.
- Edit the page and attempt to update the WebPart title.