corejavascript / corejavascript/typeahead.js

Autocomplete input in form with jQuery Unobtrusive Validation prevents form from submitting

Open
#153 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
968
Forks
231
PR merge metrics
No merged PRs in 30d

Description

I have a form with a required (`data-val-required`) autocomplete field. When the field contains a value and I attempt to submit the form, jQuery validation fails on the cloned field (`tt-hint`) because it copied the `data-val` attributes.

I suggest removing `data-val=true` from the cloned field. Let me know if you need an example.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.