Search code examples
sapui5

`sap.m.FeedListItem`: icon does not change after initial rendering


I have a master and a detail view. In the master view, you can switch between pages. Everything works fine. However, when you change from Projects to Contact / Impress (or vice versa), the icons of the three first feed list items are not updated, although the property correctly changes. I am sure that this worked with an earlier version. What am I doing wrong?

Code of the page:

<Page>
  <List items="{feed}">
    <FeedListItem
      icon="{icon}"
      showIcon="{=typeof ${icon}!=='undefined'}"
      iconActive="false"
      text="{text}"
      convertLinksToAnchorTags="All"
      modelContextChange=".handleModelContextChange"
    />
  </List>
</Page>

The affected site can be found here: http://marius-spix.de/

I filed GitHub bug #2079 with a similar FeedListItem issue a long time ago, but it seems to be unrelated.


Solution

  • Thanks for letting us know. I just created a bunch of issues related to the sap.m.FeedListItem on GitHub ([1], [2], [3]).

    Since most of the mentioned bugs are caused by the commit 454a41c, which came with UI5 v1.88, remaining at one of the lower versions supported by OpenUI5 or SAPUI5 could be a temporary solution until the fixes are available.

    Update: the fixes are now merged with the master branch and will be available in the upcoming UI5 version 1.92 and patch releases for older versions.