Hi all, I have an issue with a list customization through JSON column formatting when I use a touch-enabled device.
I created some simple button to do different activities:
- Open the list of related activities
- Open the list of related issues
- Launch a Power Automate flow that export all item's data on excel
- Launch a Power Automate flow that delete all item's data

Just for example the first field "Activities" contains the link to the Activity list and the JSON is below:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "a",
"attributes": {
"iconName": "WorkItem",
"class": "ms-fontColor-themePrimary",
"href": "=@currentWeb + @currentField",
"target": "_blank",
"title": "Go to activities"
},
"style": {
"font-size": "32px",
"text-decoration": "none",
"padding": "2px 0px 0px 15px",
"display": "=if(@currentField!='', 'block','none !important')"
}
}
On my desktop all works great, but if I try to use the same page on a device with Microsoft Edge i can't press on the buttons because the page open the item popup like if I make a double click on the row.
After some checks I found that the issue is due to this attribute:

If I change the value to false on a windows touch-enabled device through the developer console, the problem disappear and I'm able to click on the link and everything works, but without this change on the console and on different devices like an android smartphone the problem is the same.
The button works only on iOS devices (tried on iPhone and iPad).
There is a way to deactivate the "data-selection-touch-invoke" attribute? I tried with a list view JSON formatting but nothing seems to works. The workaround is to customize a gallery view, but I need to use the table format.
Let me know if someone faced this issue and found a way to solve it!
Thanks
Marco