Skip to content

Commit

Permalink
Required validation first priority
Browse files Browse the repository at this point in the history
Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
  • Loading branch information
nurRiyad committed Oct 8, 2024
1 parent 38f071b commit 5858496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composables/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const useBaseValidity = (
if (ui?.validation?.type === 'required') res = requiredCheck(n)
else if (schemaRequired) res = requiredCheck(n)

if (ui?.validation?.type === 'custom') {
if (!res && ui?.validation?.type === 'custom') {
const fname = ui.validation.name
res = func[fname](n) || false
}
Expand Down

0 comments on commit 5858496

Please sign in to comment.