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

feat: configure min and max rows in text area #6828

Merged
merged 5 commits into from
Nov 20, 2024

Conversation

sissbruecker
Copy link
Contributor

Copy link
Contributor Author

@sissbruecker sissbruecker Nov 19, 2024

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?

Copy link
Contributor

@vursen vursen Nov 20, 2024

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.

Copy link
Contributor

@vursen vursen Nov 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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.

@sissbruecker sissbruecker marked this pull request as ready for review November 19, 2024 16:08
Copy link
Contributor

@vursen vursen Nov 20, 2024

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.

@sissbruecker sissbruecker enabled auto-merge (squash) November 20, 2024 08:46
Copy link

@sissbruecker sissbruecker merged commit 890ffe3 into main Nov 20, 2024
5 checks passed
@sissbruecker sissbruecker deleted the feat/text-area-min-max-rows branch November 20, 2024 09:00
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.alpha4 and is also targeting the upcoming stable 24.6.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants