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

SPFx CommandSet iconImageUrl property is not working in some tenants

Open ystetsyuk opened this issue 7 years ago • 7 comments

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

Command action should be rendered with image

Observed Behavior

Image is not displayed for command action in list view on some tenants. It is rendered as <img src="" class="ms-Image-image ms-Image-image--contain ms-Image-image--portrait is-notLoaded is-fadeIn is-error image-271">

Steps to Reproduce

My manifest.json:

{
...
  "componentType": "Extension",
  "extensionType": "ListViewCommandSet",

    "items": {
    "skybowCommand": {
      "title": { "default": "skybow Action" },
      "type": "command",
      "iconImageUrl": "/_layouts/15/images/siteIcon.png"
    }
  }
}

Submission Guidelines

I have compared two diferent list views on different tenats where issue is reproduced and not. Its depend on your useItemsScope flag. When its TRUE => icon is not shown. I have attached screenshots with details (working.gif and notworking.gif).

In this script file: https://spoprod-a.akamaihd.net/files/odsp-next-prod_2019-03-01-sts_20190318.001/splistitemsscopedeferred-is-mini-93b2d0fc.js

e.iconUrl is undefined and e.commandAdapter.iconUrl is correct. The value is read from e.iconUrl. See script.gif atached screenshot for details.

This issue was occurred 3 weeks ago and it is still reproduced now.

Let me know if you need more details.

Best regards, Yuriy

ystetsyuk avatar Mar 27 '19 14:03 ystetsyuk

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

msft-github-bot avatar Mar 27 '19 14:03 msft-github-bot

working not_working script

Attached missing files.

ystetsyuk avatar Mar 27 '19 14:03 ystetsyuk

This issue should have been fixed. Please try again. @ystetsyuk

ahackettms avatar May 20 '19 23:05 ahackettms

We seem to have identical issues and receive the same image error (when we use the news web part). What is the status on this bug?

ProjMgrJB avatar May 30 '19 19:05 ProjMgrJB

Sorry for the long delay. We're going through old issues in the list. Seems like this one has been resolved. Please, reply back if it's still an issue for any of you.

Thanks!

AJIXuMuK avatar Sep 27 '21 16:09 AJIXuMuK

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author

ghost avatar Oct 04 '21 17:10 ghost

Closing issue due to no response from the original author. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: No response from the original issue author

ghost avatar Oct 11 '21 18:10 ghost