Add hidden attribute to HTML generated by @csrf and @method blade directives #51444
Unanswered
1000Reasons
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using Tailwind CSS "space-between" class i.e. space-y, the spacing is being applied to the hidden input fields for @csrf and @method directives, because they are missing the
hidden=""
attribute. Tailwind does not want to fix this by checking for more hidden variants than the hidden="" attribute.This can be fixed manually when creating components by simply adding the
hidden=""
attribute in question, but this does not work when using components that take advantage of the @csrf and @method directives, like the Blade UI Kit Form component, see my issue here.This can be fixed by adding a hidden attribute to the input elements generated by the @csrf and @method blade compiler directives.
Beta Was this translation helpful? Give feedback.
All reactions