element-hq / element-hq/element-web

When a message is edited, the HTML which adds `(edited)` causes triple-click selects to overshoot

Open
#22,230 3 comments 1 reaction 0 assignees View on GitHub
A-Message-Editing O-Occasional S-Tolerable T-Defect Z-Platform-Specific
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Reproducible in a Chromium based app (Chrome, Element desktop app)
- Not reproducible in Firefox
1. Send a message.
3. Edit that message.
4. Send a third message.
5. Triple-click the first message

### Outcome

#### What did you expect?

Only the first message should be selected.

#### What happened instead?

The first character of the next message was selected too:

![image](https://user-images.githubusercontent.com/76716/168662587-b24002e6-8f8d-4e5d-9e37-4e8eae00db01.png)

### Operating system

Linux, NixOS Unstable

### Application version

Element version: 1.10.11 Olm version: 3.2.8

### How did you install the app?

Nix

### Homeserver

chat.nixos.org

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.