craft-freeform icon indicating copy to clipboard operation
craft-freeform copied to clipboard

Tailwind Formatting Template duplicating classes

Open svondervoort opened this issue 5 months ago • 0 comments

What happened?

I've set up a form using the default Tailwind formatting template and whenever I inspect the wrapper within a row has duplicate classes.

This is the class attribute for a Text input:

lg:w-1/2 md:w-1/3 lg:w-1/3 xl:w-1/3 w-full px-2 w-full px-2 w-full px-2

This also happens on other levels.

I'm not extending the formatting in any way, I'm just loading and rendering the form using {{ form.render() }}

Errors and Stack Trace (if available)

No response

How can we reproduce this?

  1. Create a form with some basic fields
  2. Set the Formatting Template to Tailwind 3
  3. Check the rendered HTML

Freeform Edition

Pro

Freeform Version

5.5.7

Craft Version

4.11.4

When did this issue start?

Unsure

Previous Freeform Version

No response

svondervoort avatar Sep 04 '24 13:09 svondervoort