Skip to content

[5.x]: Translatable indicator tooltips are immediately dismissed if something other than the t9n indicator has focus when its opened #16530

@mmikkel

Description

@mmikkel

What happened?

Description

When a translatable field's t9n indicator is clicked while focus is currently set to something else on the page, the indicator's tooltip will briefly display before being automatically dismissed. The author then has to click the indicator a second time to bring up a persistent tooltip.

CleanShot.2025-01-25.at.20.17.04.mp4

Steps to reproduce

  1. Navigate to the edit page for an element with a translatable field
  2. Focus something other than the t9n indicator on the page, e.g. a field input
  3. Click on the t9n indicator for the translatable field
  4. Notice that the t9n indicator tooltip briefly appears, before being automatically dismissed

Expected behavior

When clicking a translatable indicator, the tooltip should appear and stay visible until the user puts focus somewhere else on the page.

Actual behavior

If something other than the translatable indicator itself is focused, clicking the indicator will bring up its tooltip but it will almost immediately disappear.

Craft CMS version

5.6.1

PHP version

No response

Operating system and version

macOS 14.6.1, MS Edge 131.0.2903.112

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

None

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions