Skip to content
Snippets Groups Projects
Commit 0cb78fa0 authored by qsm-odoo's avatar qsm-odoo Committed by fw-bot
Browse files

[FIX] web_editor: do not call onBlur/onFocus on active snippet click


Before this commit, when clicking inside a snippet which is already
enabled, it was disabled then re-enabled... which had the side effect
of calling onBlur/onFocus methods. This can be a problem with some
onFocus/onBlur implementation relying on the old behavior.

Note: this commit restores the exact same behavior as before. If an
internal snippet of the active one is clicked, then we still call the
onBlur then onFocus for the old active one (the parent) as the actual
enabled snippet changed (even if it is simply a child snippet).

closes odoo/odoo#39261

X-original-commit: 076992bd
Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent bce64662
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment