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 won't autoresize on initial page load on mobile #2371

Closed
thomasvanlankveld opened this issue Nov 25, 2015 · 3 comments
Closed

Textarea won't autoresize on initial page load on mobile #2371

thomasvanlankveld opened this issue Nov 25, 2015 · 3 comments

Comments

@thomasvanlankveld
Copy link

In a Meteor project:

<div class="input-field col m8 s12">
  <textarea id="event-story" class="materialize-textarea">{{story}}</textarea>
  <label class="active" for="event-story">Story</label>
</div>

Just stays three lines long even though the text is much larger. It does resize as soon as I start typing.

I tried to envoke an autoresize manually (in Template.myTemplate.onRendered()), but nothing happens:

$story.trigger('autoresize');

Or even something ridiculous like:

$story.val($story.val());
$story.trigger('autoresize');

Manual trigger('autoresize') from the chrome console doesn't do anything either.

@AlessandroAnnini
Copy link

+1

1 similar comment
@dishcandanty
Copy link

+1

@fega fega added the meteor label Apr 7, 2017
@fega
Copy link

fega commented Apr 7, 2017

Please provide a way to reproduce it. like a codepen or a snippet
Closed due inactivity, feel free to reopen it if it is still necessary.

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

4 participants