Problem/Motivation

An empty tooltip is displayed when hovering over an element.

Steps to reproduce

Set up a webform with an empty 'description' and 'description display' set to Tooltip.

Example form configuration attached.

Issue fork webform-3272971

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

John Cook created an issue. See original summary.

John Cook’s picture

I've create a patch in the javascript so that the tooltip isn't created if the description is empty.

John Cook’s picture

Status: Active » Needs review

jrockowitz made their first commit to this issue’s fork.

jrockowitz’s picture

If the #description is empty the tooltip library should not be initialized. The update MR includes test coverage.

jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.