Allows submit with empty form with required field
why would i be able to submit this with no logo if its a required field? . I am just doing the normal . As far as i remember, I dont typically have to do a check within my save() method to validate that. Maybe Im not thinking straight? Its been a long day. lol
7 Replies
I'd debug the mutateBeforeSave personally and see if there is a value, required() might be detecting an empty error
Are you calling $this->form->fill() in mount?
Out of curiosity, why are you using statePath()?
Yes. Idk, habit? Thought that was standard.
Worth a try
A lot of people miss it. Just throwing it out there.
The only that looks off to me is the statePath(). That’s not standard.
You could try statePath('logo') and see if that works if you want to keep it for some reason.
I just used @awcodes drop in action package and called it a day. Solved a few UX issues for me as well
Yeah it's sick