[REM] web_editor: remove useless _shouldDelayBlur fix

The fix that introduced `this._shouldDelayBlur = true` in
`openMediaDialog` was wrong as it was fixing a symptom rather than
the source of the problem. Later fix probably fixed the source of the
problem as the problem is not reproducible at the time of this commit.
If the symptom comes back, it ought to be fixed at it's source.

closes odoo/odoo#112245

X-original-commit: 0dd9da029d58652123ea71085dbb3a1a1e93e77d
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Nicolas Bayet
2023-02-09 09:47:14 +01:00
parent 6fac517399
commit 3573fcf3f1
@@ -1359,11 +1359,6 @@ const Wysiwyg = Widget.extend({
const field = $editable.data('oe-field');
const type = $editable.data('oe-type');
// The html_field value should not be updated while the mediaDialog is
// in use because if its value change, restoreSelection may fail since
// it has a reference to HTMLElements which are not in the DOM anymore.
this._shouldDelayBlur = true;
this.mediaDialogWrapper = new ComponentWrapper(this, MediaDialogWrapper, {
resModel: model,
resId: $editable.data('oe-id'),