Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textarea is broken when width is set to 100% #1969

Closed
marin-bratanov opened this issue Oct 13, 2020 · 1 comment · Fixed by #1993
Closed

Textarea is broken when width is set to 100% #1969

marin-bratanov opened this issue Oct 13, 2020 · 1 comment · Fixed by #1993
Assignees
Labels
Bug Something isn't working C:Textarea
Projects
Milestone

Comments

@marin-bratanov
Copy link
Contributor

Describe the bug

The wrapper gets 100% width, bot the actual textarea does not, so the resize handle is in the wrong place and you cannot focus it by clicking its entire perceived area

To reproduce
Sample blazor code, uses a kendo form that sets 100% width to the inputs

<div class="demo-section k-form k-form-vertical">
    <div class="form-wrapper k-form">
        <div class="k-form-field">
            <div class="k-form-field-wrap">
                <TelerikTextArea Id="productDescription"
                                 Label="Enter product description:"
                                 @bind-Value="@theText">
                </TelerikTextArea>
            </div>
        </div>
    </div>
</div>

@code{
    string theText { get; set; } = "one\ntwo\nthree\nfour\nlines";
}

Expected behavior

The actual textarea takes up 100% of its wrapper, you can focus it by clicking anywhere on it, the resize handle is in the expected bottom right corner, not in the middle.

Screenshots

2020-10-13 15_24_47-Window

Affected package (please remove the unneeded items)

  • theme-default
  • theme-bootstrap
  • theme-material

Affected suites (please remove the unneeded items)

  • Telerik UI for Blazor

but probably all

Affected browsers (please remove the unneeded items)

  • All

Build system information (please remove the unneeded items)

  • Not Applicable

Additional context

Makes our demos look very bad.

I also suspect it might be related to #1951

@marin-bratanov marin-bratanov added Bug Something isn't working C:Textarea labels Oct 13, 2020
@jivanova
Copy link
Contributor

Dojo with reproduction: https://dojo.telerik.com/IhORIroj

The issue stems from default width set to the k-input element: https://github.com/telerik/kendo-themes/blob/develop/packages/default/scss/textarea/_layout.scss#L36

@joneff joneff mentioned this issue Oct 19, 2020
@joneff joneff added this to Needs triage in Bug hunt via automation Oct 19, 2020
@joneff joneff added this to the 2021.1 milestone Oct 19, 2020
@joneff joneff self-assigned this Oct 19, 2020
@joneff joneff moved this from Needs triage to Low priority in Bug hunt Oct 19, 2020
Bug hunt automation moved this from Low priority to Closed Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working C:Textarea
Projects
No open projects
Bug hunt
Closed
Development

Successfully merging a pull request may close this issue.

3 participants