Skip to content

[WC-3363] Fileuploader: dismiss action for validation errors#2198

Open
yordan-st wants to merge 1 commit intomainfrom
fix/WC-3363_fileuploader-close-warning
Open

[WC-3363] Fileuploader: dismiss action for validation errors#2198
yordan-st wants to merge 1 commit intomainfrom
fix/WC-3363_fileuploader-close-warning

Conversation

@yordan-st
Copy link
Copy Markdown
Contributor

Pull request type

Bug fix (non-breaking change which fixes an issue)


Description

  • Fixed an issue where the "Invalid file format" validation error persisted indefinitely with no way to close it
  • Validation errors now auto-clear when a valid file uploads successfully, and each error entry has a dismiss button for manual removal

What should be covered while testing?

  • Configure File Uploader with restricted formats (e.g., only .pdf), upload a disallowed file (e.g., .xlsx), confirm "Invalid file format" error appears
  • While error is visible, upload an allowed file — verify the error disappears automatically after successful upload
  • Upload a disallowed file again, click the dismiss (X) button on the error entry — verify it's removed
  • Upload multiple disallowed files, then drop a new batch (mix of valid + invalid) — verify old errors clear and only new rejections show

@yordan-st yordan-st requested a review from a team as a code owner May 1, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant