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

Fix: media picker mandatory validation #18109

Merged
merged 7 commits into from
Jan 28, 2025

Conversation

nielslyngsoe
Copy link
Member

Makes Media Picker react to Mandatory setting + getting the mandatory message. + and a few minor clean ups.

Also notice how the Rich Media Input now uses a UmbRepositoryItemsManager, for a better request flow.

@leekelleher leekelleher self-requested a review January 27, 2025 13:13
Copy link
Member

@leekelleher leekelleher left a comment

Choose a reason for hiding this comment

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

@nielslyngsoe I've tested it out, but I'm having issues removing a media item (when there is only 1 item). I suspect it's to do with the missingCards check? 🤔

I've also noticed that the valueMissing validator is triggered regardless of whether the property-editor was mandatory or not.

@nielslyngsoe
Copy link
Member Author

@leekelleher Oh, I've been too shift in implementing these. Thanks for begin so aware 👏

Its corrected now

@leekelleher leekelleher self-requested a review January 28, 2025 08:14
Copy link
Member

@leekelleher leekelleher left a comment

Choose a reason for hiding this comment

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

SuperTak!

@nielslyngsoe nielslyngsoe merged commit f2b337a into v15/dev Jan 28, 2025
28 of 29 checks passed
@nielslyngsoe nielslyngsoe deleted the v15/bugfix/media-picker-mandatory-validation branch January 28, 2025 09:26
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.

None yet

2 participants