This commit is contained in:
2023-08-17 17:11:47 +03:00
parent e6bc30cb80
commit ddf9f74db5
3 changed files with 15 additions and 3 deletions

View File

@@ -39,8 +39,10 @@ function inital_slider (){
// validate
if (val < min) {
val = min;
$inputFrom[0].value = val
} else if (val > to) {
val = to;
$inputFrom[0].value = val
}
instance.update({
@@ -54,12 +56,14 @@ function inital_slider (){
// validate
if (val < from) {
val = from;
$inputTo[0].value = val
} else if (val > max) {
val = max;
$inputTo[0].value = val
}
instance.update({
to: val
});
});
}
}