[REV] web_editor: revert fix onChange event
task-2832078 closes odoo/odoo#89834 X-original-commit: 50dc710363a5222098e1fea2919b6fc4ae0aee65 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -489,6 +489,7 @@ export class OdooEditor extends EventTarget {
|
||||
this.observer = new MutationObserver(records => {
|
||||
records = this.filterMutationRecords(records);
|
||||
if (!records.length) return;
|
||||
this.dispatchEvent(new Event('contentChanged'));
|
||||
clearTimeout(this.observerTimeout);
|
||||
if (this._observerTimeoutUnactive.size === 0) {
|
||||
this.observerTimeout = setTimeout(() => {
|
||||
@@ -721,7 +722,6 @@ export class OdooEditor extends EventTarget {
|
||||
this._checkStepUnbreakable = true;
|
||||
this._recordHistorySelection();
|
||||
this.dispatchEvent(new Event('historyStep'));
|
||||
this.dispatchEvent(new Event('contentChanged'));
|
||||
this.multiselectionRefresh();
|
||||
}
|
||||
// apply changes according to some records
|
||||
|
||||
@@ -465,7 +465,7 @@ var FieldHtml = basic_fields.DebouncedField.extend(TranslatableFieldMixin, {
|
||||
* @param {OdooEvent} ev
|
||||
*/
|
||||
_onChange: function (ev) {
|
||||
this._doAction();
|
||||
this._doDebouncedAction.apply(this, arguments);
|
||||
},
|
||||
/**
|
||||
* Allows Enter keypress in a textarea (source mode)
|
||||
|
||||
Reference in New Issue
Block a user