fixed incorrect height when empty text

This commit is contained in:
Henry Jameson 2018-12-20 07:27:29 +03:00
parent afa2baec0c
commit 5970bf4e85

View file

@ -304,7 +304,7 @@ const PostStatusForm = {
target.style.height = 'auto' target.style.height = 'auto'
target.style.height = `${target.scrollHeight - vertPadding}px` target.style.height = `${target.scrollHeight - vertPadding}px`
if (target.value === '') { if (target.value === '') {
target.style.height = undefined target.style.height = null
} }
}, },
clearError () { clearError () {