File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
src/components/RangeSlider Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const {
2222 color,
2323 background,
2424 thumb,
25+ name,
2526 label,
2627 subText,
2728 minLabel,
@@ -84,6 +85,7 @@ const labelStyle = updateLabels ? `min-width:${minLabelWidth};` : null
8485 />
8586 <input
8687 type =" range"
88+ name ={ name }
8789 class:list ={ [styles .input , styles .min ]}
8890 min ={ min }
8991 max ={ max }
@@ -94,6 +96,7 @@ const labelStyle = updateLabels ? `min-width:${minLabelWidth};` : null
9496 />
9597 <input
9698 type =" range"
99+ name ={ name }
97100 min ={ min }
98101 max ={ max }
99102 class ={ styles .input }
@@ -189,6 +192,7 @@ const labelStyle = updateLabels ? `min-width:${minLabelWidth};` : null
189192 }
190193
191194 dispatch('rangeSliderOnChange', {
195+ name: target.name,
192196 min: minValue,
193197 max: maxValue
194198 })
@@ -257,6 +261,7 @@ const labelStyle = updateLabels ? `min-width:${minLabelWidth};` : null
257261 }
258262
259263 dispatch('rangeSliderOnChange', {
264+ name: minInput.name,
260265 min: minValue,
261266 max: maxValue
262267 })
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export type RangeSliderProps = {
1616 color ?: string
1717 background ?: string
1818 thumb ?: string
19+ name ?: string
1920 label ?: string
2021 subText ?: string
2122 minLabel ?: string
You can’t perform that action at this time.
0 commit comments