fix(upload): markAllAsTouched au submit pour afficher les erreurs de validation
Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -726,6 +726,7 @@ export class UploadComponent implements OnInit {
|
||||
|
||||
onSubmit() {
|
||||
const files = this.selectedFiles();
|
||||
this.metaForm.markAllAsTouched();
|
||||
if (files.length === 0 || this.metaForm.invalid) return;
|
||||
|
||||
this.uploading.set(true);
|
||||
|
||||
Reference in New Issue
Block a user