You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: ion-input ignores min value for validation #18240
Current behavior:
When an ion-input is defined with either min or max values specified
Expected behavior:
I expect the validation to fail when the user is below min or above max, and therefor the parent ion-item to show a red border on the bottom.
Steps to reproduce:
Create an ion-input inside an ion-item in a template driven form.
Thanks for the issue. I noticed the StackBlitz references Ionic 3 (I see ionic-angular: 3.9.2 in your package.json). Is this issue happening with an Ionic 3 app, or an Ionic 4 app?
Thanks for the follow up. Angular handles the form validation, and currently min/max is not supported using template-driven forms: angular/angular#16352.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
liamdebeasi commentedon May 10, 2019
Hi there,
Thanks for the issue. I noticed the StackBlitz references Ionic 3 (I see
ionic-angular: 3.9.2in your package.json). Is this issue happening with an Ionic 3 app, or an Ionic 4 app?Thanks!
swavans commentedon May 13, 2019
Woeps my bad
It's supposed to be Ionic 4, but if it also happens in the stack blitz than I guess it's in both.
liamdebeasi commentedon May 15, 2019
Thanks for the follow up. Can you post a repo with the code required to reproduce this issue running inside an Ionic 4 application?
Thanks!
swavans commentedon May 16, 2019
Sure thing https://github.com/swavans/ionic-zjip2h
liamdebeasi commentedon May 16, 2019
Hi there,
Thanks for the follow up. Angular handles the form validation, and currently min/max is not supported using template-driven forms: angular/angular#16352.
I would recommend using reactive form validation for now if you need this support: https://angular.io/guide/form-validation#reactive-form-validation.
I am going to close this as this is not an Ionic issue. Thanks!
ionitron-bot commentedon Jun 15, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.