Skip to content

Conversation

@NguyenThuyLan
Copy link
Contributor

Description

This PR fixes for umbraco/Umbraco-CMS#20710

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

How to test?

New message when exceeded will be like this:

"Maximum {max} characters, {exceeded} too many."

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-beach-055ecb503-1227.westeurope.azurestaticapps.net

* @default
*/
@property({ attribute: 'maxlength-message' })
maxlengthMessage: string | ((max: number, current: number) => string) = (
Copy link
Member

Choose a reason for hiding this comment

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

Changing this from current to exceeded is a breaking change.
We must remember we are not the only ones using the UI Library. So there may be someone who already uses this and parses in those values. So we need to have the logiv locally.
I would suggest to resolve in this way: Maximum ${max} characters, ${current-max} too many

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I didn't think of it. I updated this issue

@sonarqubecloud
Copy link

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-beach-055ecb503-1227.westeurope.azurestaticapps.net

@nielslyngsoe nielslyngsoe enabled auto-merge (squash) November 19, 2025 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants