Why is my textarea shrinking automatically when i open the page.
And when i refresh the page it goes to normal again. What may be the issue
And this is my html code
<div class="col-md-12 input-group pab pcomment">
<div class="input-group-prepend">
<span class="input-group-text">Comment</span>
</div>
<textarea matinput formControlName="pastMedicalHistoryComment" class="form-control" aria-label="Comment"></textarea>
</div>
And this my formcontroll css
.input-group>.custom-file, .input-group>.custom-select, .input-group>.form-control {
position: relative;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
width: 1%;
margin-bottom: 0;
}
2
Answers
just give it some
min-width:400px
or some pixels that you want to give default minimum width.You essentially want this, but I’ll let you incorporate it with BS: