I am currently facing an issue with a textarea in Angular, which is displayed as shown below:
https://i.sstatic.net/jjUlT.png
My Angular code for the textarea is as follows:
<div *ngIf="whetherDisplay()" class="textarea-text">
<mat-form-field appearance="outline" >
<textarea matInput name="myTextarea" disabled class="myTextarea" rows="3"
placeholder="This is a placeholder">
{{ ttsText }}
</textarea>
</mat-form-field>
</div>
The corresponding CSS styling is:
.greeting-tts-text {
width: 65%;
margin: 5px auto 0 auto;
}
There are two issues that I need help with:
- The placeholder text that should be floating above the textarea is not visible.
- The initial text inside the textarea ("This is dummy text") is shifted to the right. Why is this happening?
Can anyone identify what might be causing these problems?