We're using angular and are also using angular's own validation support.
On a numeric text field such as this:
On a numeric text field such as this:
<
input
kendo-numeric-text-box
=
"name1"
type
=
"number"
name
=
"name1"
class
=
"ehr-count-input"
ng-model
=
"countValue"
ng-model-options
=
"{ getterSetter: true, updateOn: 'default blur', debounce: {'default': 250, 'blur': 0}, allowInvalid: true}"
k-options
=
"countOptions"
ng-readonly
=
"model.getViewConfig().isReadOnly()"
ng-class
=
"::EhrLayoutHelper.computeFieldClass(model)"
ng-hide
=
"model.getViewConfig().isHidden()"
,
ng-required
=
"::model.isRequired()"
min
=
"10"
>
Kendo's validation gets triggered because of min="10", which causes the number field to reset to 10 if a user types in a number lower than that. On submit, it also triggers the error messages that display next to the field, messing up the layout.
Please note that I DO NOT register kendo validator on the form element (or any other element via <form kendo-validator="validator" ng-submit="validate($event)" class="k-content"> or anything like that, yet validation triggers regardless.
Is there any way to turn it off completely and just let angular handle it?