Textinput autogrow: Detach transitionend event handler to prevent leak

Fixes gh-6697