We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca1fd27 commit bec7839Copy full SHA for bec7839
live-form-validation.js
@@ -74,7 +74,15 @@ LiveForm.isSpecialKey = function(k) {
74
* YOU CAN CHANGE these handlers (ie. to use jQuery events instead)
75
*/
76
LiveForm.setupHandlers = function(el) {
77
- if (this.hasClass(el, this.options.disableLiveValidationClass)) return;
+ if (this.hasClass(el, this.options.disableLiveValidationClass))
78
+ return;
79
+
80
+ // Check if element was already initialized
81
+ if (el.getAttribute("data-lfv-initialized"))
82
83
84
+ // Remember we initialized this element so we won't do it again
85
+ el.setAttribute('data-lfv-initialized', 'true');
86
87
var handler = function(event) {
88
event = event || window.event;
0 commit comments