Skip to content

Textarea.trigger('autoresize') #416

Description

@Wouter8

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions