mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-13 09:00:16 +00:00
## Summary Image input changes (dropdown selection and file upload) in app/linear mode did not create their own undo entries, causing undo to skip or bundle image changes with subsequent actions. ## Changes - **What**: Add explicit `checkState()` calls in `WidgetSelectDropdown.vue` after `modelValue` is set in `updateSelectedItems()` (dropdown selection) and `handleFilesUpdate()` (file upload), ensuring each image change gets its own undo entry. ## Review Focus The fix is intentionally scoped to `WidgetSelectDropdown` rather than the generic `updateHandler` in `NodeWidgets.vue`, which would create excessive undo entries for text inputs. The pattern follows existing usage in `useSelectedNodeActions.ts` and other composables. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9623-fix-call-checkState-after-image-input-changes-for-proper-undo-tracking-31d6d73d3650814781dbca5db459ab6d) by [Unito](https://www.unito.io) --------- Co-authored-by: GitHub Action <action@github.com>