FIX: prevent default event on touchend reaction (#22588)

This was causing this event to cause other touch events down the road. For example click a reaction above the composer when the message action was opened could cause the composer to gain focus after the reaction was made.
This commit is contained in:
Joffrey JAFFEUX
2023-07-13 11:33:51 +02:00
committed by GitHub
parent de9277446f
commit ab6c638da2

View File

@@ -90,6 +90,8 @@ export default class ChatMessageReaction extends Component {
@action
onTouchEnd(event) {
event.preventDefault();
if (this.touching) {
this.handleClick(event);
}