summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-06-11 09:15:47 +0000
committerqsm-odoo <qsm@odoo.com>2020-06-11 11:17:00 +0000
commit55d6bbd723b8825655483d496a1e9ba38ad13575 (patch)
tree7bbac6f5bfe5076c88ab062fec489aace5d8aea3 /addons/web/static/src/js/views/basic/basic_controller.js
parent65a952e999798e7181228b5bbca5efd982df5902 (diff)
[FIX] web_editor: trigger 'content_changed' event on correct elements
When 'data-apply-to' was introduced to be able to target different elements for snippet option methods, we kept triggering the 'content_changed' event on the main option element. This can be a problem if the main option element is not in an editable element and the elements targeted by apply-to are, as that editable element would not be marked as dirty. Note: the bug could actually still be produced, even in Odoo <= 13.0 where the apply-to param does not exist, by using a option method which searches by itself for an inner element in an inside editable element. This is considered as a limitation for the time being. Part of https://github.com/odoo/odoo/pull/52821 X-original-commit: 906b2d9d4679c03365f949633e3c90319724deb8
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions