-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebPartTitle Control Fails to Update After Initial Save #1877
Comments
I have investigated the problem further The issue arises from this commit #1672 The problem lies in the fact that changing the textarea element to use Please refer to the React documentation on React Js Uncontrolled Components - Default values Since this change breaks production code and would require modifications to all solutions using the Please advise if I should proceed with this change |
Any news here ? |
We're experiencing the same issue. We can't update beyond 3.16.2 because of this. |
@t0mgerman, is there any chance you could help us get a better understanding of why the change was done a while back as you seem to have created the PR? I know it was a while back and it's hard to remember/review, which is why I am reaching out to you as I went through the PR details but was not sure why this was done. It seemed to me that you were trying to standardise the use of the value and defaultValue properties across different controls, but I could be wrong. |
@joelfmrodrigues We have experienced some issues after these changes were merged too, so I can only hold my hands up there and apologise! 😔 I think that was sort of my intention, but I don't actually recall any need to modify the The goal of the offending commit was to firstly start an implementation of client-side formula validation in the I've found other problems with the implementation that I wanted to redress, but I need to get my dev branch up to date locally and understand what fixes have been made since. |
@t0mgerman absolutely no need to apologise! Any contributions are welcome and we are all doing this in our own free time so no finger-pointing when there are issues 😊 I will merge the PR for this issue then. |
…control-fails-to-update-after-initial-save Fix #1877: WebPartTitle Control Fails to Update After Initial Save
Hey @ferrarirosso thanks for reporting this, the PR to fix this issue is now merged. If you have the chance to test the beta release, please let us know if the issue has been fixed. |
will check it later and give you my feedback |
It's Christmas soon 🎅 Thanks @joelfmrodrigues |
@ferrarirosso many thanks for confirming |
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
updateProperty: (value: string) => { this.properties.title = value; this.render(); }}
Steps to Reproduce:
WebPartTitle
Control as per the PnP WebPartTitle documentation.The text was updated successfully, but these errors were encountered: