sp-dev-fx-property-controls
sp-dev-fx-property-controls copied to clipboard
PropertyFieldFilePicker - Preview for picked file updates across all instances
Category
[ ] Enhancement
[ x] Bug
[ ] Question
Version
Please specify what version of the library you are using: [ latest ]
Expected / Desired Behavior / Question
I expect that when I have multiple File Picker web parts in my property pane, both with unique identifying keys, that the preview image that appears in the property pane after an image has been selected will update for that single file picker control and ONLY that control.
Observed Behavior
Both of the preview images for both file picker parts installed update the preview image when I select a new image from just one of the file picker controls. See image here
Steps to Reproduce
- Install two different file picker controls on a single web part (in my case, a viva ACE), and give them two unique keys, e.g. 'cardIconFilePicker' and 'cardImageFilePicker'
- Select a stock image with either of the file pickers
- Check the property pane preview images for both file picker controls - they will both have the image you just picked set as the preview image
I know this might seem silly because it's not actually affecting the functionality of the web parts, but our clients will likely be confused by this bug if we deliver the card to them in this state.
Thanks for reading, and please let me know if you need more info :)
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Thank you for submitting your first issue to this project.
@Theosaurus-Rex thanks for reporting the issue. Just to double-check, is this happening with the File Picker control for the web part property pane?
Transfering to property pane controls repo
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.