Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jschae23
Copy link
Contributor

Closes #45488

The FileUploadForm component now correctly preserves the filename during file upload by using functional state updates throughout. Previously, rapid successive state changes (filename, loading status, file content) would overwrite each other due to stale state closures, causing the filename to be lost.

All setState calls now use the functional update pattern prev => ({ ...prev, ... }) to ensure each update builds on the current state rather than captured state from closure creation.

@jschae23 jschae23 requested review from a team as code owners January 15, 2026 19:45
@edewit edewit self-assigned this Jan 16, 2026
Signed-off-by: Alexander Schwartz <[email protected]>
@ahus1 ahus1 self-assigned this Jan 16, 2026
Copy link
Contributor

@ahus1 ahus1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@ahus1 ahus1 merged commit 91ba06b into keycloak:main Jan 16, 2026
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filename not being displayed during imports

3 participants