mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] account_reconciliation_widget_partial: Click on input field
Otherwise, the following is raised: Error: Failed to execute 'removeChild' on 'Node': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?
This commit is contained in:
@@ -50,5 +50,15 @@ odoo.define('account_reconcile_partial.ReconciliationRenderer', function (requir
|
||||
}
|
||||
return this._super.apply(this, arguments);
|
||||
},
|
||||
_onSelectProposition: function (event) {
|
||||
var $el = $(event.target);
|
||||
if ($el.hasClass('edit_amount_input')) {
|
||||
// When the input is clicked, it is not to select the line
|
||||
// but simply to write in the input field.
|
||||
// so there is no need to call super that usually removes the line
|
||||
return;
|
||||
}
|
||||
return this._super.apply(this, arguments);
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user