Skip to content

Commit

Permalink
fix: minlength now accepted as minimum length for value.toString
Browse files Browse the repository at this point in the history
  • Loading branch information
MircoSteyer authored and Westbrook committed Mar 22, 2023
1 parent 31bf373 commit bc3b1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/textfield/src/Textfield.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export class TextfieldBase extends ManageHelpText(Focusable) {
}
if (typeof this.minlength !== 'undefined') {
validity =
validity && this.value.toString().length > this.minlength;
validity && this.value.toString().length >= this.minlength;
}
this.valid = validity;
this.invalid = !validity;
Expand Down

0 comments on commit bc3b1c2

Please sign in to comment.