We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdabb80 commit 09a6e27Copy full SHA for 09a6e27
packages/uui-input/lib/uui-input.element.ts
@@ -327,12 +327,12 @@ export class UUIInputElement extends FormControlMixin(
327
this.addValidator(
328
'tooShort',
329
() => this.minlengthMessage,
330
- () => !!this.minlength && (this._value as string).length < this.minlength
+ () => !!this.minlength && String(this._value).length < this.minlength
331
);
332
333
'tooLong',
334
() => this.maxlengthMessage,
335
- () => !!this.maxlength && (this._value as string).length > this.maxlength
+ () => !!this.maxlength && String(this._value).length > this.maxlength
336
337
}
338
0 commit comments