-
Notifications
You must be signed in to change notification settings - Fork 67
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
feat: configure min and max rows in text area #6828
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels a bit strange that one property has a default value and does not allow null
, while the other one doesn't have a default and does allow null
. Though that mirrors what we have in the WC.
I guess we could change minRows
to be nullable as well and document that it then uses 2 rows by default, though I'm not sure if that's better than having this inconsistency. Any opinions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess Integer.Max_VALUE
or a negative number could be an alternative to null
, but I would personally prefer null
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a similar problem with setMaxLength, which is of type int
and for that reason cannot be reset at all:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not very relevant either, I would assume the min/max rows configuration to usually be static.
...arent/vaadin-text-field-flow/src/main/java/com/vaadin/flow/component/textfield/TextArea.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess Integer.Max_VALUE
or a negative number could be an alternative to null
, but I would personally prefer null
.
…java/com/vaadin/flow/component/textfield/TextArea.java Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>
Quality Gate passedIssues Measures |
This ticket/PR has been released with Vaadin 24.6.0.alpha4 and is also targeting the upcoming stable 24.6.0 version. |
Part of vaadin/web-components#1399