question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextArea: max length text is cut short when using rows=1, required field has no effect

See original GitHub issue

Describe the bug A clear and concise description of what the bug is.

Isolated Example https://sap.github.io/ui5-webcomponents-react/?path=/docs/inputs-textarea--default-story

To Reproduce Steps to reproduce the behavior:

  1. Go to ui5-webcomponents-react TextArea playground
  2. Change the following properties: rows='1' and maxlength='100'
  3. See how 100 characters remaining text is cut short

Expected behavior Max length to be fully displayed height-wise

Screenshots Screen Shot 2021-10-20 at 15 16 54

UI5 Web Components for React Information @ui5/webcomponents-react version: @ui5/webcomponents-react - v0.18.11

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
niyapcommented, Dec 2, 2021

Hello Colleagues,

The issue is fixed in the master and the change is merged. Also, change for version 0.31 is prepared and is in validation phase. As soon as possible, it will be available in 0.31 as well.

Kind Regards, Niya

1reaction
Lukas742commented, Dec 2, 2021

Hi @rchrdchn

I’m not part of the UI5 Web Components team, so I can’t really answer this question, but since this issue has just been closed and the linked PR has already been merged, I would assume that the fix should be available with the next release.

@d3xter666 am I correct in my assumption?

Read more comments on GitHub >

github_iconTop Results From Across the Web

textarea character limit - javascript - Stack Overflow
I found a good solution that uses the maxlength attribute if the browser supports it, and falls back to an unobtrusive javascript pollyfill ......
Read more >
How to limit the max length of input in a textarea
The maxlength attribute specifies a fixed number of characters that a textarea can take. The user can still choose to enter fewer characters...
Read more >
How to limit the number of characters entered in a textarea in ...
In an HTML form, a textarea element specifies a text input area. The author can, and indeed must, suggest the visible size of...
Read more >
Replicating the Twitter Tweet Box with Vue.js
Today we will take a look at how to replicate the Twitter Tweet Box (the text area you use to compose new tweets)...
Read more >
Text Area | Max Rows | JET Developer Cookbook - Oracle
When max-rows is set to 0, the number of visible text lines is always as specified by the rows attribute, and the textarea...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found