Browse Source
Merge pull request #294 from Budibase/components/card-settings-and-input-suffix
Components/card settings and input suffix
gh-pages
Conor_Mack
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
packages/builder/src/components/common/Input.svelte
|
|
|
@ -14,7 +14,8 @@ |
|
|
|
|
|
|
|
function handleChange(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 || "") |
|
|
|
|