Hi,
When i created a datetime field by using Single date time picker label was not displaying.

label-issue.png

Comments

kurinji selvan created an issue. See original summary.

abinayaa.k’s picture

Hi,

I am also using this module, if i using default datetime field label is displaying. But i used Single date time picker label will be disappeared. Is there is any solution for this issue?

kurinjiselvan v’s picture

Assigned: Unassigned » kurinjiselvan v
kurinjiselvan v’s picture

Status: Active » Needs review
StatusFileSize
new610 bytes
new7.89 KB

Hi,
I found one solution for this. In src/Plugin/Field/FieldWidget/SingleDateTimeWidget.php they load the form elements in formElement function, in that they miss to add the label. I fixed and created a patch for this please try this.

After applying patch:
label-issue-fixed.png

abinayaa.k’s picture

Status: Needs review » Reviewed & tested by the community

Hi. i have tried this patch and its working fine. now i can able to see the label.

  • valic committed 6fc21ed on 8.x-1.x authored by kurinji selvan
    Issue #2907483 by kurinji selvan: Label for the field does not displayed
    

valic credited valic.

valic’s picture

Status: Reviewed & tested by the community » Fixed

Released in new version. Also have fixed this for Date range field types.

Status: Fixed » Closed (fixed)

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