diff options
| author | xO-Tx <mou@odoo.com> | 2021-02-02 16:38:37 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2021-02-02 23:16:33 +0000 |
| commit | aba9056e7baa58decf147313678ad9d1f4522dee (patch) | |
| tree | 49bb3da5e9db87f483a3aea6b2939231693d79e0 /addons/web/static/src/js | |
| parent | 1d9b6f56e70faee13cda0ccb9893ed49904ab319 (diff) | |
[FIX] web_editor: fix background layers buttons
Example to reproduce:
Drop the "Cover" snippet and try to remove the background
image. Clicking on image button has to be done 3 times to land on the
correct result:
- First click removes image, but not filter and leaves both buttons
checked
- Second click removes the filter and unchecks its button.
- Third click unchecks the image button.
It should be one click to remove image, filter and uncheck both buttons.
The goal of this commit is to prevent _applyOptions() from setting
background-image values if image is not optimizable. This filter will
solve the issues since empty values (badly parsed by getBgImageURL())
won't be added as background urls.
task-2312878
closes odoo/odoo#62984
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions
