Reaction issue on Android

The Colonel

New member
Affected version
2.3.4
So the forum I volunteer as a mod on has had some reports of funky behavior. I am not the owner so if this is the wrong section; apologies in advance.

Reaction selection is exhibiting odd behavior for end users. When you hit the like button to select the desired reaction for longer than a micro-second; it brings up the right-click context menu instead of allowing you to pick the reaction you want. This is on mobile only. See screenshot below. Not a problem on IOS.

1737215982772.webp
 
Maybe dup:

On Android, this happens with any link, not just with the reaction link.
 
Honestly, it popped up recently. It got reported here within the last few days. It never used to do that, for what it's worth. Maybe something that can get addressed on the phone OS itself. Thanks for the reply.
 
This was reported almost a year ago.

 
This issue occurred to me when I upgraded to 2.3.x yesterday.

The fix is to edit your default style's react template to include
Code:
oncontextmenu="return false"

Without fix:
Code:
<xf:reaction id="{$reaction}"
    content="{$content}" link="{$link}" params="{$params}" list="{$list}" class="{$class}"
    init="true" hasreaction="{$hasReaction}" small="true" showtitle="true"  />

With fix:
Code:
<xf:reaction id="{$reaction}"
    content="{$content}" link="{$link}" params="{$params}" list="{$list}" class="{$class}"
    init="true" hasreaction="{$hasReaction}" small="true" showtitle="true" oncontextmenu="return false" />

If you have themes that aren't inheriting from the default style, you'll have to apply this on every top-level style.
 
Back
Top Bottom