Commit 73b10dfe authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

Form.js: text input immediately changes state, rather than on loosing focus.

parent 4344c226
......@@ -26,6 +26,10 @@ if (!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]").on("input paste", this.changeHandler.bind(this));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment