Bugfix. Properly resize textarea when text gets removed.
This commit is contained in:
parent
9750dcf3a8
commit
30d110434f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user