Skip to content

adding label_class param to FloatingField construction adds a label-class attribute to the textarea dom instead of adding class to the label #194

@htao00

Description

@htao00

As title says:
FloatingField('my_floating_field', label_class='ms-3')

results in:
<textarea name="my_floating_field" cols="40" rows="10" label-class="ms-3" class="textarea form-control" placeholder="my_floating_field" required="" id="id_my_floating_field"></textarea>

The expected behavior should be same as adding the wrapper_class parameter, where it correctly adds the classes to the <div id="div_id_my_floating_field"> dom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions