Skip to content

fix: don't query an empty toggle selector when opening a mobile drop - #4400

Merged
kulmann merged 1 commit into
mainfrom
fix/mobile-drop-empty-toggle
Nov 10, 2026
Merged

kulmann merged 1 commit into
mainfrom
fix/mobile-drop-empty-toggle

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

On phones the whitespace context menu (long-press or right-click on the empty area of a file list) threw a querySelector error on every open, and the drawer stayed off-screen behind the dimmed backdrop, so New Folder and Details couldn't be tapped. It now opens normally.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: a mobile drop without a toggle opens without throwing and takes the focus
  • test case 2: browser: whitespace context menu on Pixel 7 opens, takes focus, New Folder and Details work, Escape closes it
  • test case 3: browser: row menu, nested Open with drawer, multi-selection menu, app switcher, user menu and share role dropdown unchanged (Pixel 7 and desktop)

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@kulmann
kulmann merged commit 8fbbd54 into main Nov 10, 2026
29 checks passed
@kulmann
kulmann deleted the fix/mobile-drop-empty-toggle branch November 10, 2026 11:25
@openclouders openclouders mentioned this pull request Nov 10, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The whitespace context menu logs a querySelector error on phones

3 participants