Skip to content

Conversation

@xhaihao
Copy link
Contributor

@xhaihao xhaihao commented Dec 3, 2025

Resolved issue where Upload component UI was not synchronized with editImageFiles state in NewApiPage. Switched to controlled fileList and handled file removal via onRemove to ensure consistent UI updates.

What this PR does

Before this PR:
An image file was removed from the Upload UI however this image file was still in use because it was not removed from editImageFiles

After this PR:
Upload component UI is synchronized with editImageFiles state, so user is able to use the right image for image editing.

@xhaihao xhaihao force-pushed the newapipage-controlled-upload branch from 22803ef to f98d0bb Compare December 3, 2025 06:13
Resolved issue where Upload component UI was not synchronized with
editImageFiles state in NewApiPage. Switched to controlled fileList and
handled file removal via onRemove to ensure consistent UI updates.
@xhaihao xhaihao force-pushed the newapipage-controlled-upload branch from f98d0bb to e113a16 Compare December 3, 2025 08:08
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