please the linter

This commit is contained in:
Shpuld Shpuldson 2017-05-31 17:43:43 +03:00
parent 7447f7c64d
commit b6b0a221c6

View file

@ -63,7 +63,6 @@ const PostStatusForm = {
files: [] files: []
} }
this.$emit('posted') this.$emit('posted')
let el = this.$el.querySelector('textarea') let el = this.$el.querySelector('textarea')
el.style.height = '16px' el.style.height = '16px'
}, },
@ -96,7 +95,7 @@ const PostStatusForm = {
resize (e) { resize (e) {
e.target.style.height = 'auto' e.target.style.height = 'auto'
e.target.style.height = `${e.target.scrollHeight - 10}px` e.target.style.height = `${e.target.scrollHeight - 10}px`
if (e.target.value === "") { if (e.target.value === '') {
e.target.style.height = '16px' e.target.style.height = '16px'
} }
} }