Forum Discussion
tom751000
Mar 07, 2024Copper Contributor
Clicking the title link in the list webpart opens two tabs
Hello Clicking a link (in a list column) in the list webpart opens in two new tabs. Devices are iPad and iPhone. This happens in Chrome and Edge browsers. It's normal in Safari. There is no proble...
ganeshsanap
Mar 07, 2024MVP
tom751000 Can you share the JSON you have used for formatting the list column?
Most probably the applied JSON formatting is causing this issue.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- tom751000Mar 07, 2024Copper Contributor
I will share the JSON.
When I changed the default click to delete, a tab opened with a delete message. It works differently than before.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"customRowAction": {
"action": "defaultClick"
},
"attributes": {
"title": "[$Title]",
"target": "_blank",
"data-interception": "off",
"rel":"noopener noreferrer"
},
"style": {
"border": "none",
"background-color": "transparent",
"cursor": "pointer"
},
"children": [
{
"elmType": "div",
"txtContent": "[$Title]",
"style": {
"white-space": "nowrap",
"text-overflow": "ellipsis",
"overflow": "hidden",
"font-size": "20px"
}
}
]
}- ganeshsanapMar 07, 2024MVP
By looking at the JSON, it should not open the list forms in new tab. Also, "target": "_blank", is not really supported for button element to open the item in new tab. It should be used with the anchor (a) element.
I will suggest you to raise a support ticket with Microsoft directly and report this behavior while using iPad and iPhone: Get M365 Support - Online Support
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- tom751000Mar 07, 2024Copper Contributor
ganeshsanap
I found that even if I simply specified the button tag and defaultClick, two tabs were displayed when I clicked in the list parts field
defaultClick seems to behave strangely in Chrome and Edge on iPad and iPhone. Safari is fine. Also, only one will open in any browser on my PC.
I have opened a ticket with Microsoft support.
We will contact you with the results later.