Skip to content

Commit 5c0ceae

Browse files
authored
chore(#140): update textifeld model value (#141)
1 parent c788247 commit 5c0ceae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Textfield.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ export default {
5353
5454
watch: {
5555
model() {
56-
if (typeof this.model === 'string') {
56+
if (['string', 'undefined'].includes(typeof this.model)) {
5757
this.$emit('input', this.model)
5858
}
5959
},
6060
6161
value() {
62-
if (typeof this.value === 'string') {
62+
if (['string', 'undefined'].includes(typeof this.value)) {
6363
this.model = this.value
6464
}
6565
}

0 commit comments

Comments
 (0)