Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"pattern" in "input" is not modified #108

Open
Jakobhenningjensen opened this issue Apr 9, 2021 · 0 comments
Open

"pattern" in "input" is not modified #108

Jakobhenningjensen opened this issue Apr 9, 2021 · 0 comments

Comments

@Jakobhenningjensen
Copy link

In the following

      <div class="form-group">
        {{form.link|attr:"pattern:[a-z]{4,8}"|as_crispy_field}}
      </div>

I would assume it to accept 4-8 lowercase letters, but writing "aaaa" still renders in invalid.

I have tried removing the pattern

{{form.link|remove_attr:"pattern"|as_crispy_field}}

or set it to anything

{{form.link|attr:"pattern:.*"|as_crispy_field}}

but it still only accepts the default pattern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant