-
Notifications
You must be signed in to change notification settings - Fork 151
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
Ability to refresh PropertyFieldListPicker target site while pane is open #109
Comments
I stumble upon exactly the same. It seems that loading lists from the specified site happens only on component mount rather than when properties have been changed. |
@zshane15 this would be a good update to the control. Will add it as an enhancement. |
I have implemented an enhancement to the single and multi-list picker controls. Feel free to test out the latest beta. More information about how you can do this can be found here: https://sharepoint.github.io/sp-dev-fx-property-controls/beta/ |
Thanks @estruyf the beta works great! Exactly what I needed. |
Tested and works |
Category
Version
[1.11.0]
Expected / Desired Behavior / Question
Is there a way to refresh/update the webAbsoluteUrl property of a PropertyFieldListPicker field while the pane is open? I have a custom string property named siteUrl which is used to populate the webAbsoluteUrl property for a list picker. When the pane opens, and the siteUrl field is populated, the list picker works.
However, when I try changing the siteUrl field, it doesn't update the list picker. I have to close the pane and reopen it. So is there a way to reinitialize the pane while open after a field changes? Basically this would work similar to a cascading drop-down, the user needs to enter a Site Url before they can access the list picker.
I've tried the following:
This is how my list picker is setup:
Observed Behavior
Property pane does not refresh the context for a PropertyFieldListPicker which uses a custom webAbsoluteUrl property which is based on a string field in the property pane.
The text was updated successfully, but these errors were encountered: