We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38a9669 commit d38c333Copy full SHA for d38c333
components/mdc/TextInput/MoneyInput.svelte
@@ -31,7 +31,7 @@ $: isLowerThanMinValue = minValue && internalValue < minValue
31
$: showErrorIcon = hasExceededMaxValue || isLowerThanMinValue || hasExceededMaxLength || valueNotDivisibleByStep
32
$: error = showErrorIcon || (hasFocused && hasBlurred && required && !internalValue)
33
$: showCounter = maxlength && valueLength / maxlength > 0.85
34
-$: valueNotDivisibleByStep = internalValue && (internalValue / Number(step)).toFixed(13) % 1 !== 0
+$: valueNotDivisibleByStep = internalValue && (internalValue / Number(step)).toFixed(2) % 1 !== 0
35
$: internalValue = Number(value) || 0
36
37
onMount(() => {
0 commit comments