F
Filament15mo ago
SLy

Html validation with save on multiple tabs

I have 3 tabs in a resource, last tab has a repeater. If I add new item in repeater with required fields, then switch tabs and use the save button, form does not save because I have required html fields in previously opened tab and get: "An invalid form control with name='' is not focusable." in console.
5 Replies
danilo
danilo15mo ago
Hi I was looking for an answer to this problem as well, it doesn't even matter which kind of field it is, it can be as simple as a required text field, when you are focusing on a different tab than the one having the required field not filled, it doesn't do anything, except writing that exception in the console. I've been looking in the documentation but couldn't find an answer to this. Anyone has any idea? Thanks in advance
Tomáš Douděra
Tomáš Douděra13mo ago
Hello any solution for this topic ? I have same problem.
Tomáš Douděra
Tomáš Douděra13mo ago
It seems like problem with isConcealed() V3:
No description
Tomáš Douděra
Tomáš Douděra13mo ago
v2:
No description
Tomáš Douděra
Tomáš Douděra13mo ago
When I put negation in :required="$isRequired() && (! (bool) $isConcealed())" like in V2 then it works. I am going to do PR for that.
Want results from more Discord servers?
Add your server