You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when my input has an error, the b.wrapper tag: 'div' 's error_class is ignored - I only see the mt-1 class. If I add an error_class to the :label definition, I get error classes added to the <label> just fine.
I've had some other stumbling points with adding Tailwind support to Simple Form out of the box, but I'll put those comments under #1723.
Expected behavior
I would expect the error classes to be added to the div.
The text was updated successfully, but these errors were encountered:
I don't believe the wrapper there accepts the error_class and similar options, it seems to be only possible to add those to the label/input, and to the main wrappers builder around it, but not to inner wrappers like that.
Environment
Current behavior
I wrote the following wrapper to create a Tailwind text input:
However, when my input has an error, the
b.wrapper tag: 'div'
'serror_class
is ignored - I only see themt-1
class. If I add anerror_class
to the:label
definition, I get error classes added to the<label>
just fine.I've had some other stumbling points with adding Tailwind support to Simple Form out of the box, but I'll put those comments under #1723.
Expected behavior
I would expect the error classes to be added to the div.
The text was updated successfully, but these errors were encountered: