Targeting parent field element
Unfortunately when using
->extraAttributes
, it doesn't apply to the parent element. In this case, you can see, its not applying to element with col-span-full
class, but the child below it. That means if I am hiding/showing with alpine, the parent stays and there is extra spacing. Recommended solution?3 Replies
what class are you trying to add
I’m trying to add x-show as shown in the screenshot.
Same result using extraAlpineAttributes()
i dont think we have an attribute bag on the field wrapper yet
would be a good feature though