va-file-input-multiple: Add vaMultipleError to component and fix bug in encrypted file story#2000
Merged
RyanMunsch merged 5 commits intomainfrom Feb 23, 2026
Merged
Conversation
accommodates handling of "internal" errors for single va-file-input instances via new vaMultipleError event on va-file-input-multiple
powellkerry
approved these changes
Feb 19, 2026
jamigibbs
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Chromatic
https://5402-file-input-multiple-story-bug--65a6e2ed2314f7b8f98609d8.chromatic.com
Description
This pull request introduces improved error handling and state management for the
va-file-input-multiplecomponent, enabling more robust tracking of file errors and better synchronization between the web component and its Storybook demo. The main changes are the addition of a new error event, refactoring of file tracking logic, and updates to the demo to handle these enhancements.Error Handling Improvements:
vaMultipleErrorevent to theva-file-input-multiplecomponent, which emits detailed information when a child file input encounters an error. This allows parent components to track which file has an error and what the error is.handleFileInputErrormethod, which updates the file entry with error state and emits the new error event.State Management and Demo Updates:
EncryptedTemplate) to track files and their error states separately, and to update the encrypted list based on file types and error states. Introduced newhandleChangeandhandleErrorfunctions for more accurate state updates.Related tickets and links
Closes department-of-veterans-affairs/vets-design-system-documentation#5402
Screenshots
Testing and review
Approvals
See the QA Checklists section below for suggested approvals. Use your best judgment if additional reviews are needed. When in doubt, request a review.
Approval groups
Add approval groups to the PR as needed:
QA checklists
Use the QA checklists below as guides, not rules. Not all checklists will apply to every PR but there could be some overlap.
In all scenarios, changes should be fully tested by the author and verified by the reviewer(s); functionality, responsiveness, etc.
✨ New Component Added
minorlabel🌱 New Component Variation Added
minorlabel🐞 Component Fix
patchlabel♿️ Component Fix - Accessibility
patchlabel🚨 Component Fix - Breaking API Change
majorlabel🔧 Component Update - Non-Breaking API Change
minorlabel📖 Storybook Update
ignore-for-releaselabel🎨 CSS-Library Update
css-librarylabel