diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-11-16 11:10:03 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2017-11-16 12:20:30 +0100 |
| commit | 672b403d056f06eacf2c4c8ce6b31aed949df6e4 (patch) | |
| tree | 895b72673e3d591a52b831d4d0dad78adb72549d /addons/web_editor/static/src/js/widgets/widgets.js | |
| parent | 797f0c1b6e6d7f137b15182b6011a77b8122a469 (diff) | |
[FIX] web: make sure modifiers works for async widgets
Before this commit, asynchronous field widgets (with willStart async),
with a non empty template had a problem: the invisible modifier was not
applied properly.
The reason is that the code that applied the modifiers was called
directly after the widget was 'willStarted'. This means that if this is
async, and if there is a template, the $el in willStart will be replaced
by another $el after, which will remove the invisible modifier.
This was an interesting problem with the pad widget (it is asynchronous
the first time a pad widget is instantiated)
Diffstat (limited to 'addons/web_editor/static/src/js/widgets/widgets.js')
0 files changed, 0 insertions, 0 deletions
