Skip to content
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

FilePicker - tile view always selects the wrong file #1478

Closed
hstuermannfellowmind opened this issue Feb 28, 2023 · 5 comments
Closed

FilePicker - tile view always selects the wrong file #1478

hstuermannfellowmind opened this issue Feb 28, 2023 · 5 comments
Assignees
Labels
status:fixed-next-drop Issue will be fixed in upcoming release.
Milestone

Comments

@hstuermannfellowmind
Copy link

Category

[ ] Enhancement

[ X] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 3.12.0 / 3.13.0 ]

Detected bug in 3.12 and updated to 3.13. Still getting this bug and did not found an issue for this here.

Expected / Desired Behavior / Question

When I select a file in the FilePicker in tile view, it will select the file I clicked.

Observed Behavior

Not the selected file is selected. The file before is selected.
image

Steps to Reproduce

  • Create a minimal SPFX Project
  • Add FilePicker like this, change the urls to a existing image library and web for example
<FilePicker
            hidden={false}
            isPanelOpen={true}
            onCancel={() => {}}
            hideStockImages={true}
            hideLinkUploadTab={true}
            hideLocalMultipleUploadTab={true}
            hideLocalUploadTab={true}
            hideOneDriveTab={true}
            hideOrganisationalAssetTab={true}
            hideRecentTab={true}
            hideSiteFilesTab={false}
            hideWebSearchTab={true}
            webAbsoluteUrl={"url_to_list_web"}
            defaultFolderAbsolutePath={"url_to_list"}
            accepts= {[".gif", ".jpg", ".jpeg", ".bmp", ".dib", ".tif", ".tiff", ".ico", ".png", ".jxr", ".svg"]}
            buttonIcon="FileImage"
            onSave={(filePickerResult: IFilePickerResult[]) => {}}
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            context={context as any}
          />
  • Run webpart and try tile view
@ghost
Copy link

ghost commented Feb 28, 2023

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

@ghost ghost added the Needs: Triage 🔍 label Feb 28, 2023
@github-actions
Copy link

Thank you for submitting your first issue to this project.

@ktskumar
Copy link

May I work on this issue!

@joelfmrodrigues
Copy link
Collaborator

@ktskumar absolutely, many thanks for volunteering. I will assign the issue to you so others are aware and we avoid duplication of effort

@joelfmrodrigues joelfmrodrigues added status:working-on-it Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail. and removed Needs: Triage 🔍 labels Apr 24, 2023
@joaojmendes joaojmendes added status:fixed-next-drop Issue will be fixed in upcoming release. and removed help wanted status:working-on-it Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail. labels Apr 30, 2023
@joaojmendes joaojmendes added this to the 3.14.0 milestone Apr 30, 2023
@joelfmrodrigues joelfmrodrigues modified the milestones: 3.14.0, 3.15.0 May 3, 2023
@joelfmrodrigues
Copy link
Collaborator

New release just published, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:fixed-next-drop Issue will be fixed in upcoming release.
Projects
None yet
Development

No branches or pull requests

4 participants