Skip to content

Fix: ColorPicker positioning issue inside BubbleMenu#545

Open
aditorito wants to merge 6 commits intofrappe:developfrom
aditorito:fix/colorpicker-jump-action
Open

Fix: ColorPicker positioning issue inside BubbleMenu#545
aditorito wants to merge 6 commits intofrappe:developfrom
aditorito:fix/colorpicker-jump-action

Conversation

@aditorito
Copy link
Copy Markdown
Contributor

fix #538

This was caused by the internal popover (Reka UI) failing to correctly calculate the position of its trigger element when used inside the transformed BubbleMenu (Tippy).

Changes made

  1. Replaced ColorPicker popover usage with a manual trigger button
  2. Removed appendTo / placement and slot-based togglePopover
  3. Rendered picker via with render-mode="inline"
  4. Positioned picker manually using getBoundingClientRect() + position: fixed
  5. Added local state to control open/close and outside click handling
  6. Removed .focus() from editor chain to avoid selection updates
Screen.Recording.2026-04-08.024913.mp4

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.93%. Comparing base (1d53a38) to head (d023c4b).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #545   +/-   ##
========================================
  Coverage    57.93%   57.93%           
========================================
  Files           28       28           
  Lines         3105     3105           
========================================
  Hits          1799     1799           
  Misses        1306     1306           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: ColorPicker inside BubbleMenu jumps to top-left when used inside transformed canvas

1 participant