Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why error message is not shown
Message
 
 
À
12/09/2016 06:56:11
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01640697
Message ID:
01640714
Vues:
28
Lots. But since I can't debug I don't know what the problem might be. Why not examine the HTML in the debugger and check that the attributes are being set.

I can see that there is ng-invalid-max attribute shown when I inspect the control (and the red border is shown correctly). I'll try to see if there is any difference between the working page control and non-working page control when I inspect that control in Developer's Tools.

This is working control
<input class="form-control percent-icon ng-not-empty ng-valid-min ng-valid-sm-number ng-dirty ng-valid-number ng-invalid ng-invalid-max ng-touched"
 id="discPct" max="100" min="-100" name="discPct" placeholder="0" ng-model="currentSpecial.discPct" type="number" 
data-sm:number="" data-accuracy="0" style="">
and this is not working
<input type="number" name="maxDaysLocal" id="maxDaysLocal" sm-focus="" min="1" max="45"
 ng-model="currentPrefs.loclccdays" 
class="form-control ng-valid-min ng-valid-sm-number ng-not-empty ng-dirty ng-valid-number ng-invalid ng-invalid-max ng-touched" 
placeholder="0" data-sm:number="" data-accuracy="0" style="">
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform