Skip to content

Commit

Permalink
Always emit modelValue event in TextInput component
Browse files Browse the repository at this point in the history
  • Loading branch information
ksassnowski committed Nov 24, 2022
1 parent 5297e41 commit cc7911f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions resources/scripts/components/UI/TextInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ const text = computed({
return props.modelValue;
},
set(val: string) {
if (props.modelValue !== null) {
emit("update:modelValue", val);
}
emit("update:modelValue", val);
}
});
</script>

0 comments on commit cc7911f

Please sign in to comment.