Skip to content

Link bubble menu doesn’t display URL and title field for new links in the Content Editor

Summary

The bubble menu to edit links in the Content Editor doesn’t display the Title and URL form when the link doesn’t have this data. This happens after opening the bubble menu for the first time and then trying to create a 2nd link. I also notice that I have to click the Cancel button two times if I type text in the Title field.

Steps to reproduce

See the videos below.

Example Project

We can reproduce this problem on any project with Wikis enabled.

What is the current bug behavior?

  1. The link bubble menu stays in an incorrect state after clicking the Cancel button.
  2. If I enter a value in the URL field, I have to click "Cancel" twice to hide the bubble menu.

What is the expected correct behavior?

  • The URL and Title form appears when a link doesn’t have a URL set.
  • I don’t have to click cancel

Relevant logs and/or screenshots

2022-07-04_22.53.04

2022-07-05_11.35.16

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes