bugfix: input value handles undefined/null
This commit is contained in:
parent
f9217bbecd
commit
d09085fdf3
|
@ -17,7 +17,7 @@
|
|||
onChange(value)
|
||||
}
|
||||
|
||||
$: displayValue = suffix && value.endsWith(suffix) ? value.replace(new RegExp(`${suffix}$`), "") : value
|
||||
$: displayValue = suffix && value && value.endsWith(suffix) ? value.replace(new RegExp(`${suffix}$`), "") : (value || "")
|
||||
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue