Open ganesh-sanap opened 2 years ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
I was able to hide Share in the command bar in my environment!
Possible issue hidding menu options -> @shagra-ms I have the same issue as described by @ganesh-sanap. Below associated gif.
Thanks @ganesh-sanap @tecchan1107 @aaclage for sharing more repro details. We have a local repro now.
@tecchan1107 Still not working for me. I tried it on 3 different tenants (2 standard release tenants and 1 targeted release tenants). Same issue on all tenants.
It worked in the tenant I used for testing.
Hi, I have the same problem in my test tenant, in production the code works as expected. The only difference is the external sharing configuration which is enabled in the test tenant
Tested in a production tenant and it didn't work as expected.
If you notice where this works and hides the Share button is where that button does not have a drop down. In our tenant, we have under Share > Share Link , and Manage Access. So Share now has a drop down, the "share" hides share link now instead of the entire button. So you are left with Share and a drop down.
We need to identify how to hide the new Share button and Manage Access. Tried all sorts of variations in JSON but nothing worked.
This also appears to stop working with the new Microsoft Lists interface
What Should Happen
I am trying to hide "Share" option in list command bar using JSON formatting. I have tried below JSON in view formatting but it is not hiding the "Share" option.
I have also tried this JSON specifying all
selectionModes
for testing.What Actually Happens
As per the Command bar customization syntax reference documentation, "Share" option should be hidden from command bar when using any one of the above JSON codes.
Screenshot related to this issue: