diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-12-26 18:07:16 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-12-27 12:03:59 +0000 |
| commit | 22e5a56696928273392e8f92cbd081e50a2dee02 (patch) | |
| tree | f6f895e41d863bfc6ca5e38352b62d83a6bcbf73 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | a8b0cc451ce1138ac89ba2efa46ae8fe20157e4b (diff) | |
[REF] web_editor: no left panel input default value as placeholder
Changes (+ fix) to the way inputs work:
- Placeholder is now independant from the default value and set through
data-placeholder. When emptying an input, it still sends the default
value but appears empty. The value is only visually added in the input
after leaving it (or hitting enter), after the validation through
_computeWidgetState (because now when the default value is applied on
a snippet, the value is displayed in the input as any other value).
- Consider inputs active if they hold a value and, in the case the input
has an associated unit, if that value is different from 0 (important
for visibility checks).
- If no default value is set and that a unit is set, the input will
return the ('0' + unit) value by default (no need to specify it in xml
anymore).
Part of https://github.com/odoo/odoo/pull/42407
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
