@@ -28,7 +28,7 @@ function RangePanel({
2828 { items ?. map ( ( item ) => {
2929 const rangeLength = _ . range (
3030 item . rangeEndpoints ?. [ 0 ] ?? 0 ,
31- ( item . rangeEndpoints ?. [ 1 ] ?? 0 ) + 1 ,
31+ ( item . rangeEndpoints ?. [ 1 ] ?? 0 ) + 2 ,
3232 ) . length ;
3333 return (
3434 < React . Fragment key = { item . sliderName } >
@@ -40,7 +40,7 @@ function RangePanel({
4040 countTitleTooltip = { item . inputTitleTooltip }
4141 sliderTitleTooltip = { item . sliderTitleTooltip }
4242 min = { item . rangeEndpoints ?. [ 0 ] }
43- max = { item . rangeEndpoints ?. [ 1 ] }
43+ max = { item . rangeEndpoints ?. [ 1 ] + 1 }
4444 selectedRangeValue = { item . selectedRangeValue }
4545 selectedCountValue = { item . inputValue }
4646 onSearch = { onApply }
@@ -54,13 +54,13 @@ function RangePanel({
5454 item ?. inputValidationPatterns ?? [
5555 {
5656 errorCondition : ( value : string | number ) => + value <= 0 ,
57- errorText : `Value should be greater then ${ 0 } ` ,
57+ errorText : `Value should be greater than ${ 0 } ` ,
5858 } ,
5959 {
6060 errorCondition : ( value : string | number ) => {
6161 return + value > rangeLength ;
6262 } ,
63- errorText : `Value should be smaller then ${
63+ errorText : `Value should be smaller than ${
6464 rangeLength + 1
6565 } `,
6666 } ,
0 commit comments