Bugfix. Properly resize textarea when text gets removed.

This commit is contained in:
JC Brand 2019-06-19 09:03:52 +02:00
parent 9750dcf3a8
commit 30d110434f

View File

@ -1092,11 +1092,8 @@ converse.plugins.add('converse-chatview', {
},
inputChanged (ev) {
const new_height = ev.target.scrollHeight + 'px';
if (ev.target.style.height !== new_height) {
ev.target.style.height = 'auto'; // Fixes weirdness
ev.target.style.height = new_height;
}
ev.target.style.height = 'auto';
ev.target.style.height = ev.target.scrollHeight + 'px';
},
clearMessages (ev) {