Form Labels Disappearing on Validation Error?

Dan Tappin
So have some stock scaffold forms.  When I hit a validation error the forms turn red etc. and I get the normal validation error etc.  The issue is on all the failed fields the labels <%= form.label :attribute %> disappear.

Any one else see this?


<%= form.label "Attribute" %> works.  No idea where to start here.
Dan Weaver
What does the output HTML look like for both of those?
Dan Tappin
The labels are gone completely.  It's not even a Tailwind or CSS issue.  I was looking at trying Simple Form anyway lol
Dan Tappin
Just noticed an additional quirk.  It seems to just be text fields.  The labels on selects that fail validation work fine.
You’re not receiving notifications from this thread.
© 2022 GoRails, LLC