Skip to content

Commit

Permalink
Fix issue in textarea-array component
Browse files Browse the repository at this point in the history
Removed trim function since it caused issues with resetting cursor at end of input when deleting and reaching a space.
It is taken care of by the trim option in mongoose
  • Loading branch information
yeln4ts committed Jul 5, 2021
1 parent 63c6359 commit dd5b51f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/textarea-array.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export default {
methods: {
updateParent: function() {
if (this.noEmptyLine)
this.$emit('input', this.dataString.split('\n').filter(e => e !== '').map(e => e.trim()))
this.$emit('input', this.dataString.split('\n').filter(e => e !== ''))
else
this.$emit('input', this.dataString.split('\n').map(e => e.trim()))
this.$emit('input', this.dataString.split('\n'))
}
}
}
Expand Down

0 comments on commit dd5b51f

Please sign in to comment.