Graylog2 / Graylog2/graylog2-server

`Actions` context menu appears when selecting text in an expanded `Message`

Open
#17,553 0 comments 0 reactions 0 assignees View on GitHub
bug triaged User Experience
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

## Expected Behavior

Selecting text in an expanded `Message` (i.e. a search result) should not trigger display of the `Actions` context menu (`Insert into dashboard/search`, etc.).

## Current Behavior

Selecting text (e.g. part or all of a field name or value) in an expanded `Message` (i.e. a search result) triggers displaying the `Actions` context menu (`Insert into dashboard/search`, etc.). This does not occur when selecting text in the `message` of a result that hasn't been expanded.

There was some related work done within the past year, so I'm not sure if this is a regression or that work was focused on selections on a message that wasn't expanded. ~~I'll try to track down the issue and PR next week.~~

**edit:** I was likely thinking of #13263, which was to prevent expansion of a `Message` when the user was selecting text. Perhaps something similar could be done to prevent display of the `Actions` context menu when the user is selecting text.

## Steps to Reproduce (for bugs)

1. Do a search that returns messages
2. Expand a message
3. Drag to select part or all of a field name or value
4. Note the `Actions` context menu appears

## Context

I was copying part of the `message` and noticed the context menu popped up.

## Your Environment

* Graylog Version: `5.2.1`
* Operating System: Windows
* Browser version: Chrome 119, Firefox 119

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.