sp-dev-fx-property-controls icon indicating copy to clipboard operation
sp-dev-fx-property-controls copied to clipboard

PropertyFieldFilePicker - Preview for picked file updates across all instances

Open Theosaurus-Rex opened this issue 3 years ago • 5 comments

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 :)

Theosaurus-Rex avatar Jan 06 '22 23:01 Theosaurus-Rex

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msftbot[bot] avatar Jan 06 '22 23:01 msftbot[bot]

Thank you for submitting your first issue to this project.

github-actions[bot] avatar Jan 06 '22 23:01 github-actions[bot]

@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?

joelfmrodrigues avatar Jan 25 '22 23:01 joelfmrodrigues

Transfering to property pane controls repo

joelfmrodrigues avatar Feb 10 '22 09:02 joelfmrodrigues

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msftbot[bot] avatar Feb 10 '22 09:02 msftbot[bot]