sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SPFX Listview Command set doesn't work when searching with a library

Open ozippy opened this issue 5 years ago • 10 comments

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [X] 💥 Microsoft Edge
  • [ ] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

I'm using Edge Version 92.0.902.30 (Official build) beta (64-bit) but I don't think it matters

  • SPFx v1.11.0
  • Node.js 10.15.3

Issue description

Listview command sets do not seem to be visible in search results in a document library. They only work if you filter.

This is problematic for users in a large library because when they want to select a document and execute an action with a command set button, they cannot.

I have recorded a sample video demonstrating the behaviour.

https://user-images.githubusercontent.com/7800411/124064842-f4a02a00-da78-11eb-82ac-345ab6d6e877.mp4

Am I doing something wrong or is this a known issue? If it is known, is there any workaround or plan for future support?

Thanks

ozippy avatar Jul 01 '21 04:07 ozippy

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

ghost avatar Jul 01 '21 04:07 ghost

Hi @ozippy,

Thanks for reporting this issue! Sorry for the long delay. Could you please double check the behavior as it looks like fixed by now.

Thanks!

AJIXuMuK avatar Oct 01 '21 16:10 AJIXuMuK

Hi Alex,

i just checked and the behaviour is still the same.

Thanks

ozippy avatar Oct 03 '21 06:10 ozippy

Hi @ozippy - thank you for the quick response. Few additional questions as I'm unable to repro it:

  1. Is this behavior happening on multiple tenants?
  2. I assume you're using default command set provisioned by the generator, correct?
  3. How are you testing the behavior:
    • debug query string + gulp serve
    • deployed debug solution + gulp serve
    • deployed released solution (gulp bundle --ship, gulp package-solution --ship)

AJIXuMuK avatar Oct 04 '21 12:10 AJIXuMuK

Hi Alex,

I've just generated a brand new solution and deployed it to another tenant. I do a gulp build, gulp bundle --ship and gulp package-solution --ship. Load it into a site collection app catalog and add the app. The commands appear in the document library. if I search and then select a document, the commands don't appear. I tried the same in a generic list and the behaviour is the same.

I've put the solution I generated here: https://github.com/ozippy/TestSPFXCommandSet

Hope that helps.

Thanks

Jem

ozippy avatar Oct 07 '21 10:10 ozippy

Thank you Jeremy @ozippy,

I was finally able to repro it and working on it.

AJIXuMuK avatar Oct 08 '21 13:10 AJIXuMuK

Hi @ozippy - this should be fixed WW by now. Could you please check in on your end?

Thanks!

AJIXuMuK avatar Nov 11 '21 21:11 AJIXuMuK

Hi Alex, that is awesome, thanks! It does seem to be working now.

Cheers

ozippy avatar Nov 12 '21 07:11 ozippy

Thank you for the confirmation!

AJIXuMuK avatar Nov 12 '21 13:11 AJIXuMuK

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

ghost avatar Nov 20 '21 00:11 ghost