As a beginner in coding, I am trying to recreate the comment section of the Facebook app where the send icon is integrated into the textarea and positioned at the right end.
Although I have been experimenting with some code, I am facing issues where the text typed in the textarea overlaps under the send icon and the icon does not stay at the bottom as intended when multiple texts are typed. https://i.sstatic.net/GiTCc.png https://i.sstatic.net/zaiso.png https://i.sstatic.net/812Iv.png
<form [formGroup]="form" >
<ion-item-divider ></ion-item-divider>
<ion-item lines="none" style="height: auto; margin-top: 10px; margin-bottom: 10px;" >
<ion-textarea
formControlName="comment"
placeholder="Write a comment..."
rows="1"
auto-grow="true"
autofocus="true"
mode="ios"
maxlength="1000"
style="
height: auto;
border-radius: 20px;
box-shadow: none !important;
width: 80%;
background-color: #EBEDF0;
padding-left: 9px;
"
autosize
>
<div style="float: right; margin-bottom: -50%">
<ion-button
(click)="createComment()"
fill="clear"
slot="end"
>
<ion-icon name="send" style="font-size: 30px;"></ion-icon>
</ion-button>
</div>
</ion-textarea>
</ion-item>
</form>