on 08-17-2023 12:41 PM
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>
This is most likely fixed already with https://github.com/SAP/openui5/commit/5f7511d67413955324e7d3a28032097fb231fece. Open the browser's devtools and see if the respective code change is missing in the served sap.m.Link source code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks a lot. that must have been the problem. with version 1.108.21 everything works again.
User | Count |
---|---|
83 | |
11 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.