Skip to content
Open
5 changes: 4 additions & 1 deletion Src/knockout.validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
grouping: {
deep: false, //by default grouping is shallow
observable: true //and using observables
}
},
onValidationElementUpdated: function () { }
};

var html5Attributes = ['required', 'pattern', 'min', 'max', 'step'];
Expand Down Expand Up @@ -580,6 +581,8 @@
var obsv = valueAccessor();
obsv.extend({ validatable: true }),
config = utils.getConfigOptions(element);

config.onValidationElementUpdated(obsv, element);

var cssSettingsAccessor = function () {
var result = {};
Expand Down