Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Sep 2, 2025

Backport of PR #7599

The `LinkBubbleView` is created and then mounted by `createTooltip`
in the `update` function of the `LinkBubblePluginView`.

This already happens during the initial rendering
as that is the first time the editor content is updated.

At this time the `href` is null and therefore `startEdit` is called
which in turn sets the focus in the entry field.

Instead set `edit` to `true` right away.

The behavior of `mod-k` is still inconsistent.
In particular it will not focus the link entry
if the `href` already was falsy - for example right after the start.

Signed-off-by: Max <[email protected]>
@codecov
Copy link

codecov bot commented Sep 2, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 58.27%. Comparing base (d49c00a) to head (fa7065c).
⚠️ Report is 2 commits behind head on stable31.

Files with missing lines Patch % Lines
src/components/Link/LinkBubbleView.vue 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           stable31    #7602      +/-   ##
============================================
+ Coverage     51.34%   58.27%   +6.92%     
============================================
  Files           292      291       -1     
  Lines         41632    36684    -4948     
  Branches        875      874       -1     
============================================
  Hits          21378    21378              
+ Misses        20133    15186    -4947     
+ Partials        121      120       -1     

☔ 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.

@max-nextcloud max-nextcloud merged commit 825371d into stable31 Sep 2, 2025
74 of 77 checks passed
@max-nextcloud max-nextcloud deleted the backport/7599/stable31 branch September 2, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants