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