Changes
1 changed files (+4/-2)
-
-
@@ -101,10 +101,12 @@const max = parseFloat(input.max); const min = parseFloat(input.min); input.value = Math.min( const finalValue = (input.value = Math.min( Number.isFinite(max) ? max : Infinity, Math.max(Number.isFinite(min) ? min : -Infinity, next), ).toString(10); )); input.value = (Math.floor(finalValue * 100) / 100).toString(10); // Tell Elm the updated value. input.dispatchEvent(new Event("input", { bubbles: true, cancelable: true }));
-