[IMP] website, website_sale, web_editor: set step on numeric inputs
Changing numeric values using the keyboard arrows did not work on some fields. This commit solves this problem by adding the necessary attributes to the numeric (we-)inputs. task-2601533 Part-of: odoo/odoo#81241
This commit is contained in:
@@ -249,7 +249,7 @@
|
||||
<div>
|
||||
<we-input class="o_we_user_value_widget" title="Border Width">
|
||||
<div class="o_custom_border_width_input">
|
||||
<input name="custom_border_width" type="text" class="text-end" size="2"/>
|
||||
<input name="custom_border_width" type="number" class="text-end" size="2"/>
|
||||
<span>px</span>
|
||||
</div>
|
||||
</we-input>
|
||||
|
||||
@@ -305,6 +305,9 @@ options.registry.InnerChart = options.Class.extend({
|
||||
const newEl = document.createElement(tag);
|
||||
const contentEl = document.createElement('input');
|
||||
contentEl.type = 'text';
|
||||
if (tag === 'td') {
|
||||
contentEl.type = 'number';
|
||||
}
|
||||
contentEl.value = value || '';
|
||||
if (backgroundColor) {
|
||||
contentEl.dataset.backgroundColor = backgroundColor;
|
||||
|
||||
@@ -53,8 +53,8 @@
|
||||
</tr>
|
||||
</table>
|
||||
</we-matrix>
|
||||
<we-input string="Min Axis" data-select-data-attribute="" data-dependencies="bar_chart_opt, horizontal_bar_chart_opt, line_chart_opt" data-attribute-name="minValue"/>
|
||||
<we-input string="Max Axis" data-select-data-attribute="" data-dependencies="bar_chart_opt, horizontal_bar_chart_opt, line_chart_opt" data-attribute-name="maxValue"/>
|
||||
<we-input string="Min Axis" data-step="1" data-select-data-attribute="" data-dependencies="bar_chart_opt, horizontal_bar_chart_opt, line_chart_opt" data-attribute-name="minValue"/>
|
||||
<we-input string="Max Axis" data-step="1" data-select-data-attribute="" data-dependencies="bar_chart_opt, horizontal_bar_chart_opt, line_chart_opt" data-attribute-name="maxValue"/>
|
||||
<we-colorpicker string="Background" data-name="chart_bg_color_opt"
|
||||
data-color-change=""
|
||||
data-attribute-name="backgroundColor"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<we-button data-customize-website-views="website_sale.products_list_view">List</we-button>
|
||||
</we-select>
|
||||
<we-row string="Size" class="o_we_sublevel_1">
|
||||
<we-input data-set-ppg="" data-no-preview="true" data-reload="/"/>
|
||||
<we-input data-set-ppg="" data-step="1" data-no-preview="true" data-reload="/"/>
|
||||
<span class="mx-2 o_wsale_ppr_by">by</span>
|
||||
<we-select class="o_wsale_ppr_submenu" data-dependencies="grid_view_opt" data-no-preview="true" data-reload="/">
|
||||
<we-button data-set-ppr="2">2</we-button>
|
||||
|
||||
Reference in New Issue
Block a user