Fix slider release event not triggering
This commit is contained in:
@@ -37,6 +37,12 @@
|
||||
option = value;
|
||||
}
|
||||
|
||||
function onRelease(e: Event) {
|
||||
if (nodeValue && option != null) {
|
||||
$nodeValue = option
|
||||
}
|
||||
}
|
||||
|
||||
function setBackgroundSize(input: HTMLInputElement) {
|
||||
input.style.setProperty("--background-size", `${getBackgroundSize(input)}%`);
|
||||
}
|
||||
@@ -54,12 +60,6 @@
|
||||
setBackgroundSize(target);
|
||||
}
|
||||
|
||||
function onRelease(e: Event) {
|
||||
if (nodeValue && option) {
|
||||
$nodeValue = option
|
||||
}
|
||||
}
|
||||
|
||||
let elem: HTMLDivElement = null;
|
||||
|
||||
$: if (elem) {
|
||||
|
||||
Reference in New Issue
Block a user