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) {
|
inputChanged (ev) {
|
||||||
const new_height = ev.target.scrollHeight + 'px';
|
ev.target.style.height = 'auto';
|
||||||
if (ev.target.style.height !== new_height) {
|
ev.target.style.height = ev.target.scrollHeight + 'px';
|
||||||
ev.target.style.height = 'auto'; // Fixes weirdness
|
|
||||||
ev.target.style.height = new_height;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
clearMessages (ev) {
|
clearMessages (ev) {
|
||||||
|
Loading…
Reference in New Issue
Block a user