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

Bugfix: MNTP min/max validation #2094

Merged
merged 10 commits into from
Jul 8, 2024
Merged

Conversation

leekelleher
Copy link
Member

Description

Wires up the minimum/maximum configuration with MNTP's property-editor validation.
This propagates down to the nested picker components for documents, media and members.

Fixes umbraco/Umbraco-CMS#16442

Also, I found (and fixed) the bug with the <umb-input-media> component when removing items didn't refresh the UI.

Fixes umbraco/Umbraco-CMS#16492

Types of changes

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

Adding `elementName` constant + linting
- Added `minMessage` and `maxMessage` properties
- Added `selection` property; deprecated `items` property
- Removed the `switch` from `#onChange`, as the type can be inferred
- Set the form control to be the nested picker, (document, media or member)
Sets the form control to be the nested picker `input-content`.
@iOvergaard
Copy link
Collaborator

Looks good to me, but it seems you have some failed tests, @leekelleher

@leekelleher leekelleher merged commit 6ad8c3c into main Jul 8, 2024
7 checks passed
@leekelleher leekelleher deleted the v14/bugfix/mntp-min-max-validation branch July 8, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants