Skip to content

[5.x]: Switching Link Field type duplicates tooltips under Advanced #18666

@romainmenke

Description

@romainmenke

What happened?

Description

Switching type in a link field causes multiple tooltips to appear

Steps to reproduce

  1. Add a link field with advanced options (e.g. URL Suffix)
  2. Switch the type from Entry to URL
  3. Click i next to URL Suffix
  4. See two hud info-hud instances in the DOM

Or even more:

  1. Add a link field with advanced options (e.g. URL Suffix)
  2. Switch the type from Entry to URL back and forth multiple times
  3. Click i next to URL Suffix
  4. See many hud info-hud instances in the DOM
  5. See an increasingly darker drop shadow around the info tooltip

Expected behavior

No extra tooltips

Actual behavior

Duplicate tooltips were added.
These were also confusing and harder to get rid of.
It took me a while to figure out that dismissing the tooltip wasn't broken, but instead multiple were added.

Craft CMS version

5.9

PHP version

8.4

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions