Angular Material input not behaving as expected
See original GitHub issueDescribe the bug
I have an Angular 10 application. When I try to implement Amplify, <input matInput>
is not behaving as expected anymore.
To Reproduce
npm install @aws-amplify/ui-angular aws-amplify
- Configure Amplify (does not really matter for this problem)
- Use this HTML file
<amplify-authenticator *ngIf="authState !== 'signedin'" username-alias="email"></amplify-authenticator>
<mat-form-field>
<mat-label>Value</mat-label>
<input matInput type="text" [(ngModel)]="value">
</mat-form-field>
- The inputs are not reactive anymore and the placeholder is overlapping with the content.
Expected behavior The placeholders should behave normally and animate just like the default Angular material inputs.
Screenshots
Actual:
Expected:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Angular material input validation not working as expected
Try with (input)="validate($event)" instead of (keypress) . I think keypress is executed only when the focus switch on another element.
Read more >Input
This error is thrown when you attempt to set an input's type property to a value that isn't supported by the matInput directive....
Read more >Input field mouse click not working properly on tabs
There is a bug on the input fields when they are on a tab. Input fields on another tab then the default tab...
Read more >How to fix your Angular Material input field from being ...
An input field (using mdInput within an md-input-container ) I had in the app was not behaving at all like it should; users...
Read more >Angular mat-selection-list not working as expected with search ...
[Solved]-Angular mat-selection-list not working as expected with search input-angular.js ... You can simply expand your typesOfShoes string array to be an object ...
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 Free
Top 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
Hey @jordanranz! I just created a dummy to reproduce it: https://github.com/simonreitinger/amplify-angular-dummy
@jordanranz - Any updates on this?