Merge pull request #293 from mjashanks/master
bugfix: input value handles undefined/null
This commit is contained in:
commit
710eb380bb
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
||||||
onChange(value)
|
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>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue