Skip to content

Commit

Permalink
Merge pull request #230 from deivid-rodriguez/remove_incorrect_valida…
Browse files Browse the repository at this point in the history
…tions

Remove incorrect validations
  • Loading branch information
najlepsiwebdesigner authored Jan 16, 2019
2 parents 6ba965e + c50ca61 commit c555032
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions js/foundation-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,7 @@
else {
date = this.isInput ? this.element.val() : this.element.data('date') || this.element.find('input').val();
}
if (date && date.length > this.formatText.length) {
$(this.picker).addClass('is-invalid')
$(this.element).addClass('is-invalid-input')
return;
} else {
$(this.picker).removeClass('is-invalid')
$(this.element).removeClass('is-invalid-input')
}


this.date = DPGlobal.parseDate(date, this.format, this.language);

if (fromArgs) {
Expand Down
Loading

0 comments on commit c555032

Please sign in to comment.