Commit 30d11043 authored by JC Brand's avatar JC Brand

Bugfix. Properly resize textarea when text gets removed.

parent 9750dcf3
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment