diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-10-23 11:36:13 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-10-23 14:27:22 +0000 |
| commit | 0cb78fa0479a5a0bcb0b8066441d0141f991199b (patch) | |
| tree | 06a4163164baeeb88da79c188d89c70fddaea90b /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | bce64662bbc136baaa1059c3193a2efad8100b35 (diff) | |
[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: 076992bdf099f3a645c9a1ef6df2cdcccbf1c2b2
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
