Skip to Content
1
Aug 17, 2023 at 11:41 AM

app closes on sap.m.Link press

65 Views Last edit Aug 17, 2023 at 11:42 AM 3 rev

Hi,

we have some sap.m.Links in ColumnListItems. Clicking the Links opens ResponsivePopover.

Currently we are using SAPUI5 1.96.12 - everything works as expected.

We are aiming to switch to 1.108.20 so i tested the behavior with this version. Clicking the link closes the app now. The Hash is changed immediately so i end up in launchpad menu. (i commented out the code of the event handler. the issue still exists.)

the issue occurs only in launchpad environment (standalone app works fine) and it seems to occur only using chrome dev tools' emulator. (no issue if dev tools deactivated). unfortunately i cannot simply test this with a real ipad.

I tested the same with ui5 version 1.116.0 and the links are working again as expected.

So I guess there is a "bug" in this specific version (1.108.20) or at least an issue between ui5 and chrome's emulator, isn't it?

<mvc:View controllerName="com.myorg.linkInTableIssue.controller.MainView"
xmlns:mvc="sap.ui.core.mvc" displayBlock="true"
xmlns="sap.m"
xmlns:f="sap.f">
<Page id="page" title="{i18n>title}">
<f:GridContainer id="cardGrid" busyIndicatorDelay="0" class="sapUiSmallMargin">
<f:layout>
<f:GridContainerSettings columnSize="20rem" rowSize="0.5rem" gap="0.5rem"/>
</f:layout>
<f:Card>
<f:content>
<HBox>
<Table id="dataTable">
<columns>
<Column hAlign="Center">
<Label design="Bold" wrapping="true" text="1st col" />
</Column>
<Column hAlign="Center">
<Label design="Bold" wrapping="true" text="2nd col" />
</Column>
<Column hAlign="Center">
<Label design="Bold" wrapping="true" text="3rd col" />
</Column>
</columns>
<items>
<ColumnListItem type="Inactive">
<Link text="press me 1" press=".onDataCellPress" />
<Link text="press me 2" press=".onDataCellPress" />
<Link text="press me 3" press=".onDataCellPress" />
</ColumnListItem>
</items>
</Table>
</HBox>
</f:content>
</f:Card>
</f:GridContainer>
</Page>
</mvc:View>