3
0
Fork 0

[FIX] web_widget_numeric_step: Fix _onChange input fields methods disabled by the widget

13.0
Sergio Teruel 2020-03-04 01:18:38 +01:00 committed by Carlos Roca
parent 1b09543a03
commit b55d69e583
1 changed files with 5 additions and 0 deletions

View File

@ -135,6 +135,9 @@ odoo.define('web_widget_numeric_step.field', function (require) {
this.$input.val(this._sanitizeNumberValue(cval));
this.isDirty = true;
this._doDebouncedAction();
// Every time that user update the value we must trigger an
// onchange method.
this.$input.trigger("change");
},
// Handle Events
@ -202,6 +205,8 @@ odoo.define('web_widget_numeric_step.field', function (require) {
*/
_onChange: function (ev) {
ev.target.value = this._sanitizeNumberValue(ev.target.value);
// Call _onChange of input widget
this._super.apply(this, arguments);
},
// Helper Functions