Skip to content

fix: Keep bubble menu open while color picker popover is active - #695

Open
stravo1 wants to merge 2 commits into
frappe:developfrom
stravo1:fix-bubble-menu-color-picker-close
Open

fix: Keep bubble menu open while color picker popover is active#695
stravo1 wants to merge 2 commits into
frappe:developfrom
stravo1:fix-bubble-menu-color-picker-close

Conversation

@stravo1

@stravo1 stravo1 commented Jul 24, 2026

Copy link
Copy Markdown
Member

The bubble menu's default shouldShow hides it once focus leaves its DOM subtree, but the color picker popover is teleported to , so opening it closed the menu. This in turn also transported the Popover to the screen's edge. Now we track the popover's open state and factor it into a custom shouldShow check.

Also settle the Autocomplete's fixed-position recalculation on the next animation frame instead of just nextTick, since layout can still be mid-flight when nextTick resolves.

Before:

Screen.Recording.2026-07-25.at.2.48.57.AM.mp4

After:

Screen.Recording.2026-07-25.at.2.49.39.AM.mp4

The bubble menu's default shouldShow hides it once focus leaves its DOM
subtree, but the color picker popover is teleported to <body>, so opening
it closed the menu. Track the popover's open state and factor it into a
custom shouldShow check.

Also settle the autocomplete's fixed-position recalculation on the next
animation frame instead of just nextTick, since layout can still be
mid-flight when nextTick resolves.
@greptile-apps

greptile-apps Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

Safe to merge — the change is isolated to bubble-menu visibility and autocomplete positioning with no effect on data or state persistence.

All three files make narrow, well-scoped changes. The custom shouldShow faithfully mirrors the default TipTap logic and adds two clearly bounded overrides. The nextTick → rAF deferral is a standard pattern for post-layout reads.

Files Needing Attention: No files require special attention.

Reviews (2): Last reviewed commit: "Merge branch 'develop' into fix-bubble-m..." | Re-trigger Greptile

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.59%. Comparing base (f737b23) to head (09690ce).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #695   +/-   ##
========================================
  Coverage    57.59%   57.59%           
========================================
  Files           35       35           
  Lines         4271     4271           
========================================
  Hits          2460     2460           
  Misses        1811     1811           

☔ View full report in Codecov by Harness.
📢 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.

# Conflicts:
#	frontend/src/components/Controls/Autocomplete.vue
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.

1 participant