ultimatedelman/autogrow

Does not work with jQuery 3.x

TouriSpo opened this issue · 1 comments

Easy to reproduce: Use jQuery 2.x and it works fine. Switch to new jQuery 3.x release and it does not work anymore

A little update. I narrowed the bug down. When using jQuery 3.x the following code

function resize(e) { console.log("This: "); console.log(this); console.log("Dollar This: "); console.log($(this)); .... Rest of resize methode

shows that $(this) is the whole Document object:
jquery3

while when using jQuery 2.x it is the actual textarea:
jquery2