Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using placeholder makes control dirty?
Message
 
General information
Forum:
Internet
Category:
Other
Miscellaneous
Thread ID:
01628439
Message ID:
01628443
Views:
25
I removed placeholders from both input text controls but they are still marked as dirty. Although I believe some time ago it did work correctly.

What's going on?
<div class="col-md-6 col-lg-6">
                        <input type="text" name="opCode" id="opCode" ng-model="currentOperator.opCode" class="form-control ng-untouched ng-valid ng-valid-maxlength ng-hide ng-valid-required ng-dirty" ng-maxlength="6" ng-show="isNew" ng-required="isNew">
                        <div class="field-validation-error ng-hide" ng-show="form.editOperatorGeneralForm.opCode.$error.required && form.editOperatorGeneralForm.opCode.$dirty">
                            <span>Operator code is required.</span>
                        </div>
                        <div class="field-validation-error ng-hide" ng-show="form.editOperatorGeneralForm.opCode.$error.maxlength  && form.editOperatorGeneralForm.opCode.$dirty">
                            <span>Operator code cannot exceed 6 characters.</span>
                        </div>
                    </div>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform