Declined
Last Updated: 05 Oct 2023 11:18 by ADMIN
Created by: Thomas
Comments: 1
Category: TextArea
Type: Bug Report
0

I'm using Telerik Blazor 4.5.0 in my Server App and still can't use AutoSize on my TextAreas that are initial in hidden containers.

@page "/testpage"

<div class="row">
    <div class="col-2">
<TelerikButton ButtonType="ButtonType.Button" OnClick="@(() => tog = !tog)">Toggle</TelerikButton>
<div class="@(tog == false ? "d-none" : "d-inline")">
    <TelerikTextArea Name="textName" Id="text" AutoSize="true" @bind-Value="@Text"></TelerikTextArea>
</div>
    </div>
</div>


@code {

    public string Text { get; set; }
    public bool tog { get; set; } = false;

    protected override async Task OnInitializedAsync()
    {
        Text = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,";

    }

    
}

The TextArea is initially at minimum height and only fits the content, when entering. See the attached screenshots.