javascript - AngularJS : ng-show complex conditions problems with IE9 -
the below code works in browsers including ie10. has problems in ie9. guessing there no syntax error or logic error in code, may need different way write condition in ng-show
<div class="control-group" ng-show="!waste.id" style="display:inline-block"> <label class="control-label" for="shipments">treatment or shipment frequency</label> <div class="controls controls-row"> <div> <input type="number" id="shipments" name="shipments" maxlength="50" ng-required="!waste.id && !nochange" ng-model="waste.shipments" ng-disabled="nochange" placeholder="shipment" class="input-small" step="any"> <i class="inline icon-info-sign" ng-show="form.shipments.$invalid || form.shipments.$error.required == true"></i> <span class="help-inline">times per</span> </div> <div> <input type="number" id="frequency" name="frequency" maxlength="50" ng-required="!waste.id && !nochange" ng-model="waste.frequency" ng-disabled="nochange" placeholder="frequency" class="input-small" step="any"> <i class="inline icon-info-sign" ng-show="form.frequency.$error.required == true || form.frequency.$invalid"></i> <span class="help-inline">year(s)</span> </div> </div> </div>
as can see "treatment , shipment frequency" number , valid when entered value number , required == true. conditions when try evaluate differently, came know expression $invalid
won't work meaning type=number
, $invalid
might have problem in ie9 , that's why <i>
tag won't go away. happening in ie9. can me
Comments
Post a Comment