Merge pull request #294 from Budibase/components/card-settings-and-input-suffix
Components/card settings and input suffix
This commit is contained in:
commit
24e803270e
|
@ -14,7 +14,8 @@
|
||||||
|
|
||||||
function handleChange(val) {
|
function handleChange(val) {
|
||||||
value = val
|
value = val
|
||||||
onChange(value)
|
let _value = value !== "auto" ? value + suffix : value
|
||||||
|
onChange(_value)
|
||||||
}
|
}
|
||||||
|
|
||||||
$: displayValue = suffix && value && value.endsWith(suffix) ? value.replace(new RegExp(`${suffix}$`), "") : (value || "")
|
$: displayValue = suffix && value && value.endsWith(suffix) ? value.replace(new RegExp(`${suffix}$`), "") : (value || "")
|
||||||
|
|
Loading…
Reference in New Issue