When the tooltip have a summary field it has 2 (duplicated) formtips.
Duplicated formtips

Issue fork formtips-3218582

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:

Comments

matsbla created an issue. See original summary.

matsbla’s picture

At least I see a tooltip on the body field even though the description field is empty

matsbla’s picture

Title: Do not display toolbit when there is no description » Do not display tooltip when there is no description in body field (Text fields with summary)
u_tiwari’s picture

StatusFileSize
new550 bytes

This will prevent duplicate question marks in front of the Summary field.

matsbla’s picture

Title: Do not display tooltip when there is no description in body field (Text fields with summary) » Duplicated tooltip for body field
Issue summary: View changes
Status: Active » Reviewed & tested by the community

This patch solves the issue, thanks!

matsbla’s picture

Issue summary: View changes
StatusFileSize
new29.13 KB

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

astonvictor’s picture

Status: Reviewed & tested by the community » Needs review

We shouldn't remove the form tip for the summary field.

There is another issue with the formatted text widget. The description of the field has edit-{FIELD_NAME}-0--description id and we try to get label by [for="' + edit-{FIELD_NAME}-0 + '"] selector that doesn't exist because the field has edit-{FIELD_NAME}-0-value selector.

I added additional validation for the selector. Please, check if the MR works for you.

FYI the body field can have two form tips:
- description from the help text;
- info about text formats.

Note that for the second form tip, I had an empty output because all children $('.filter-guidelines').children() have display:none; style. I fixed it by adding the show() method.

astonvictor’s picture

StatusFileSize
new17.1 KB
astonvictor’s picture

astonvictor’s picture

Status: Needs review » Fixed

Merged the MR.

Changes will be added to the next release.

Status: Fixed » Closed (fixed)

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