Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textarea.trigger('autoresize') #416

Open
Wouter8 opened this issue Mar 21, 2018 · 0 comments
Open

Textarea.trigger('autoresize') #416

Wouter8 opened this issue Mar 21, 2018 · 0 comments

Comments

@Wouter8
Copy link

Wouter8 commented Mar 21, 2018

Hi,

I've been searching for quite some time now. I found #168 which mentions the issue I'm having.
Although the label for my textarea does go up the textarea doesn't resize.

In action:

Whenever I type the textarea does resize. I want it to do that automatically after the ngModel gets a value. I tried some things:

setTimeout(() => {
      $('#answer').trigger('keydown');
}, 1500);

$(document).ready(() => {
  $('#answer').trigger('autoresize');
  Materialize.updateTextFields();
})

Help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant