Skip to content

Required attribute is not added into data-validation field with maxlength set using html5 module #400

Closed
@Astra-RX

Description

@Astra-RX

I create a basic input using both maxlength and required attributes. Only the length is in the data-validation field of the generated input, therefore the required was not validated.

source:

<input type="text" required maxlength="20">

output:

<input type="text" required="" maxlength="20" data-validation="length" data-validation-length="max20" class="valid">

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions