Allowing auto values for inputs
This commit is contained in:
parent
afac093e83
commit
e0ca7976f4
|
@ -14,7 +14,8 @@
|
||||||
|
|
||||||
function handleChange(val) {
|
function handleChange(val) {
|
||||||
value = val
|
value = val
|
||||||
onChange(value)
|
let _value = value + suffix
|
||||||
|
onChange(_value)
|
||||||
}
|
}
|
||||||
|
|
||||||
$: displayValue = suffix && value.endsWith(suffix) ? value.replace(new RegExp(`${suffix}$`), "") : value
|
$: displayValue = suffix && value.endsWith(suffix) ? value.replace(new RegExp(`${suffix}$`), "") : value
|
||||||
|
|
Loading…
Reference in New Issue