Textarea duplicates characters with matTextareaAutosize
See original GitHub issueAs 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:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.