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
Dan Harrin
Dan Harrin2y ago
what class are you trying to add
Mark Chaney
Mark ChaneyOP2y ago
I’m trying to add x-show as shown in the screenshot. Same result using extraAlpineAttributes()
Dan Harrin
Dan Harrin2y ago
i dont think we have an attribute bag on the field wrapper yet would be a good feature though
Want results from more Discord servers?
Add your server