question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Textarea duplicates characters with matTextareaAutosize

See original GitHub issue

As soon as I add matTextareaAutosize to a textarea it duplicates characters

What is the expected behavior?

Only the typed characters appear

What is the current behavior?

Typed text “Hello” Text in textarea: HelloH

What are the steps to reproduce?

Type “Hello” into the textarea https://angular-bv2wxj.stackblitz.io https://stackblitz.com/edit/angular-bv2wxj?file=app%2Fform-field-overview-example.html

this is a fork of the sample of simple input fields https://stackblitz.com/angular/kdpyvloydqv Only change:

<mat-form-field>
  <textarea matInput placeholder="Textarea" **matTextareaAutosize**></textarea>
</mat-form-field>

What is the use-case or motivation for changing an existing behavior?

Angular apps should work on any modern browser.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Firefox mobile 58 and Firefox mobile 59 (beta) on Android Angular version: 5.2.5 Angular Material Version: 5.2.1

Is there anything else we should know?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cvoegtlecommented, Feb 18, 2018

The bug is reproducible with Firefox 58, too. That is not beta.

I agree that it could be a but with Firefox mobile, since textarea with matTextareaAutosize works fine in many other browsers. But anyhow it would be great, if someone yould analyse what is different on Firefox mobile.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Textarea duplicates characters with matTextareaAutosize #9986
As soon as I add matTextareaAutosize to a textarea it duplicates characters. What is the expected behavior? Only the typed characters appear ...
Read more >
Change size of textarea - Stack Overflow
Depending on what you've meant by: However, it is always the same size. There are two options. OPTION 1 (STATIC size depending on...
Read more >
Duplicate value in multiple textarea while using ng-repeat
Solved: Hi Guys, We have created multiple textarea field by using ng-repeat, the field are getting display as intended.
Read more >
textarea duplicates line breaks - CodeIgniter Forums
When I submit the form the CI duplicates every line breaks of the ... first submit (a plus empty line created between the...
Read more >
Input | Angular Material
MatTextareaAutosize extends CdkTextareaAutosize. Directive to automatically resize a textarea to fit its content. Selector: textarea[mat-autosize] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found