Skip to content

Commit 7a11a77

Browse files
duau-odoobso-odoo
authored andcommitted
slider refresh actual value
fix CarouselCardsOption template as well
1 parent 0b2028d commit 7a11a77

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

addons/html_builder/static/src/core/building_blocks/builder_range.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ export class BuilderRange extends Component {
6464

6565
onInput(e) {
6666
this.preview(e.target.value);
67+
if (this.props.displayRangeValue) {
68+
this.state.value = this.parseDisplayValue(e.target.value);
69+
}
6770
}
6871

6972
get rangeInputValue() {

addons/html_builder/static/src/plugins/carousel_cards_option.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
<BuilderRow label.translate="Position" t-if="isActiveItem('toggle_card_img_opt')">
1111
<BuilderButtonGroup level="1" applyTo="'.s_card'">
12-
<BuilderButton title="Left" classAction="'flex-lg-row'" iconImg="/html_builder/static/img/options/pos_left.svg"/>
13-
<BuilderButton title="Right" classAction="'flex-lg-row-reverse'" iconImg="/html_builder/static/img/options/pos_right.svg"/>
12+
<BuilderButton title="Left" classAction="'flex-lg-row'" iconImg="'/html_builder/static/img/options/pos_left.svg'"/>
13+
<BuilderButton title="Right" classAction="'flex-lg-row-reverse'" iconImg="'/html_builder/static/img/options/pos_right.svg'"/>
1414
</BuilderButtonGroup>
1515
</BuilderRow>
1616

0 commit comments

Comments
 (0)