element-hq / element-hq/element-web

Timeline search results have text that cannot be selected

Open
#20,818 0 comments 1 reaction 0 assignees View on GitHub
A-Search O-Occasional S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Starting from the timeline in the Element Web/Desktop room and have clicked the timeline search button
2. I click to focus in the search string box, type "test", and click the green magnifiying glass
3. I try to drag my pointer to select text in one of the search results and it behaves as if I've selected an image an offers to upload it when I release the mouse (Note that if I click on the search result it will exit the search results with that message selected such that I can now select the text in it, but at that point the rest of the search results are gone and I have to search again to then go back to search results.

### Outcome

#### What did you expect?

I expected to be able to select any visible text into my clipboard buffer.

#### What happened instead?

It tries to drag and drop an image of the text onto the channel when I release the mouse button. Some search results do have selectable text so this varies a bit as my video shows the first selection dragging an image, and the second two selecting text.

![Peek 2022-01-31 11-02](https://user-images.githubusercontent.com/650260/151830450-3b5e004d-fab2-4f08-9dfd-371d41b91c3f.gif)

### Operating system

Debian LInux

### Browser information

Google Chrome Version 96.0.4664.45 (Official Build) (64-bit)

### URL for webapp

develop.element.io

### Application version

Element version: e6488e7e16a7-react-7e5de9294c4d-js-cf8d2bf6efc5 Olm version: 3.2.8

### Homeserver

pwoss.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.