[FIX] web: allow onchange to modify origin field
With this commit, we allow an onchange coming from a field to modify the same field. This was not working for field widgets derived from an input field.
This commit is contained in:
@@ -206,7 +206,7 @@ var InputField = DebouncedField.extend({
|
||||
if (!event || event === this.lastChangeEvent) {
|
||||
this.isDirty = false;
|
||||
}
|
||||
if (this.isDirty || (event && event.target === this)) {
|
||||
if (this.isDirty || (event && event.target === this && event.data.changes[this.name] === this.value)) {
|
||||
return $.when();
|
||||
} else {
|
||||
return this._render();
|
||||
|
||||
Reference in New Issue
Block a user