In a form I have
{{> afFieldInput id='idMeContacterInputMessage' class="formInput" name='message' type='textarea' rows=3
style="position:absolute; top:22px; left:0px; width:380px;"}}
and
Template.meContacter.rendered =function(){
$('#idMeContacterInputMessage').autosize()
.....
autosize() is from 'copleykj:jquery-autosize'
This is Ok. The textarea element is automatically resized for entering characters.
I would now like to capture the event corresponding to the resizing of my textarea
I tried this without success
Template.meContacter.rendered =function(){
$('#idMeContacterInputMessage').autosize()
var ta = document.getElementById('idMeContacterInputMessage');
ta.addEventListener('autosize:resized', function(){
console.log('textarea height updated');
});
Please, is there anyone can help me? Thank you