fgilde / MudBlazor.Extensions

MudBlazor.Extensions from https://www.mudex.org is a small extension for MudBlazor from https://mudblazor.com
http://www.mudex.org
MIT License
245 stars 20 forks source link

[Bug]: Validation fails on any amount of files #66

Closed tnruff closed 11 months ago

tnruff commented 1 year ago

Contact Details

tomnruff@gmail.com

What happened?

A form with a MudExUploadEdit with the attribute Required=true will not successfully validate even with files added. Attempting to submit will just mark the field "This field is required."

Expected Behavior

The form successfully will validate with one or more files in the component.

Screenshots

No response

Reproduction link

No response

What application type are you referring to?

ServerRendered

Custom Application Type

No response

MudBlazor.Extension Version

1.7.76

MudBlazor Version

6.11.0

What browser are you using?

Chrome, Edge

Sample Solution

No response

Pull Request

No response

Code of Conduct

fgilde commented 12 months ago

Are you using MudExUploadEdit inside of a MudForm or are you using it with MudExObjectEditForm ?

tnruff commented 12 months ago

Inside a MudForm. The issue was fixed with a prior pull request in the last version but it seems to have been reverted for some reason. Edit: The PR referenced

fgilde commented 12 months ago

Ok I will have a look. In general it's nothing changed there but I will check it

fgilde commented 12 months ago

Can you test your case with this package 1.7.78-prev-2312081239-main ?

I also created a demo here https://www.mudex.org/upload-edit-form

tnruff commented 11 months ago

Looks to be fixed now with the latest preview. Thanks!