When there are no items selected for an entity reference field, the label still shows up. I will attach a patch that fixes this issue.

CommentFileSizeAuthor
#2 hide_label_on_empty-2996499-1.patch715 byteschrisroane

Comments

chrisroane created an issue. See original summary.

chrisroane’s picture

Status: Active » Needs review
StatusFileSize
new715 bytes

Attached a patch that fixes it. Confirmed it is working right on a site we are building out.

chris matthews’s picture

Assigned: chrisroane » Unassigned
Priority: Major » Normal
Status: Needs review » Reviewed & tested by the community

The patch in #2 still applies to 8.x-1.x-dev and fixes the issue for me as well.

s-jack’s picture

I patched 8.x-1.1.
There was no change.
An empty term label is displayed.
Maybe it depends on my theme.

Please tell me what is the difference between this patch and "#2924234: If there is no term, the label is displayed." ?

llribas’s picture

nehajyoti’s picture

Status: Reviewed & tested by the community » Postponed (maintainer needs more info)

  • geoanders committed 8cf38be on 8.x-1.x
    Issue #2996499: Hide when no items to display.
    
geoanders’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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