Skip to content
Snippets Groups Projects
Commit b9ecf9e8 authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

Proposed fix for issue https://project/issues/1896.

parent e839c90d
No related branches found
No related tags found
No related merge requests found
......@@ -23,9 +23,9 @@ var QfqNS = QfqNS || {};
this.$form = $(document.forms[this.formId]);
this.$form.on("change", this.changeHandler.bind(this));
// On text input elements, we specifically bind this events, in order to update the formChanged property
// immediately, not only after loosing focus.
this.$form.find("input[type=text], textarea").on("input paste", this.changeHandler.bind(this));
// On <input> elements, we specifically bind this events, in order to update the formChanged property
// immediately, not only after loosing focus. Same goes for <textarea>
this.$form.find("input, textarea").on("input paste", this.changeHandler.bind(this));
};
n.Form.prototype.on = n.EventEmitter.onMixin;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment