nextcloud / nextcloud/server

[Bug]: Files: Context menu for files appearing in wrong location

Open
#47,970 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 31-feedback bug
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

This bug is a two part bug.

Part one:
Right clicking on a file shows the context menu to far above:
image

Part two:
After doing part one, selecting the file and pressing the "..." for the selected files at the top. The context menu containing delete shows up at the selected file, instead of the cursor position:
image

This only happens if part one is executed before

Steps to reproduce
  1. Right click on a file
  2. Select the file
  3. Press "..." for the selected file
Expected behavior

Context menu appearing close to the cursor

Nextcloud Server version

master

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

This happens at the nextcloud conf instance https://conf.nextcloud.com/ running version 30.0.0.14

I'm running Firefox 128.0.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the two-step context-menu behavior in the Files interface with Firefox, as described in the issue. Trace the positioning used by the file context menu and the selected-files “...” menu. Done means both menus appear close to the cursor after reproducing the listed steps, with coverage for the interaction if the project’s existing tests support it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.