Skip to content

Fix nested mobile drops in overflow menus - #3392

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/mobile-drop-nested-overflow
Sep 17, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/mobile-drop-nested-overflow

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Description

This fixes nested drop handling when a regular OcDrop opens an OcMobileDrop.

The regression became visible in mobile overflow menus rendered inside an OcBubbleMenu: opening a nested mobile submenu, such as the table size selector, teleports the submenu into the bottom drawer container. The parent OcDrop did not know that this teleported mobile drawer belonged to its drop chain, so clicks in the submenu were treated as outside clicks and closed the parent menu. After selecting a value, the inverse path was also incomplete because includeAncestors was not forwarded to OcMobileDrop.

The change registers mobile drop content in the shared drop registry and lets mobile drops participate in ancestor closing. This keeps nested mobile submenus open while interacting with them, while still closing the full menu chain after an explicit selection.

Related Issue

How Has This Been Tested?

  • test environment: local unit test environment
  • test case 1: ./node_modules/.bin/vitest --config ./tests/unit/config/vitest.config.ts --run packages/design-system/src/components/OcDrop/OcMobileDrop.spec.ts packages/design-system/src/components/OcDrop/OcDrop.spec.ts packages/design-system/src/components/OcDrop/dropRegistry.spec.ts
  • test case 2: verified drop registry behavior for nested mobile drop containers and ancestor closing

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)

@AlexAndBear AlexAndBear self-assigned this Sep 17, 2026
@AlexAndBear
AlexAndBear merged commit 674c72c into main Sep 17, 2026
32 checks passed
@AlexAndBear
AlexAndBear deleted the fix/mobile-drop-nested-overflow branch September 17, 2026 06:56
@openclouders openclouders mentioned this pull request Sep 17, 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.

tiptap: Mobile table creation dropdown closes in toolbar bubble menu on mobile

2 participants