Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 78b0882

Browse files
committed
Remove bound attributes
1 parent 9d77a52 commit 78b0882

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/BlockTypes/SimplePriceFilter.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,17 @@ class='range'
6262
<div class='range-bar'></div>
6363
<input
6464
type='range'
65-
value='$min_price'
6665
min='0'
67-
max='$max_range'
66+
data-woo-bind:max='state.filters.maxRange'
6867
data-woo-bind:value='state.filters.minPrice'
6968
data-woo-class:active='state.filters.isMinActive'
7069
data-woo-on:input='actions.filters.setMinPrice'
7170
data-woo-on:change='actions.filters.updateProducts'
7271
>
7372
<input
7473
type='range'
75-
value='$max_price'
7674
min='0'
77-
max='$max_range'
75+
data-woo-bind:max='state.filters.maxRange'
7876
data-woo-bind:value='state.filters.maxPrice'
7977
data-woo-class:active='state.filters.isMaxActive'
8078
data-woo-on:input='actions.filters.setMaxPrice'
@@ -84,14 +82,12 @@ class='range'
8482
<div class='text'>
8583
<input
8684
type='text'
87-
value='$min_price'
8885
data-woo-bind:value='state.filters.minPrice'
8986
data-woo-on:input='actions.filters.setMinPrice'
9087
data-woo-on:change='actions.filters.updateProducts'
9188
>
9289
<input
9390
type='text'
94-
value='$max_price'
9591
data-woo-bind:value='state.filters.maxPrice'
9692
data-woo-on:input='actions.filters.setMaxPrice'
9793
data-woo-on:change='actions.filters.updateProducts'

0 commit comments

Comments
 (0)