[backport core/1.36] fix: prevent image preview resize issues when switching to vueNodes mode (#7996)

Backport of #7868 to `core/1.36`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7996-backport-core-1-36-fix-prevent-image-preview-resize-issues-when-switching-to-vueNodes--2e76d73d365081428a34c091aa12f9ad)
by [Unito](https://www.unito.io)

Co-authored-by: Terry Jia <terryjia88@gmail.com>
This commit is contained in:
Comfy Org PR Bot
2026-01-13 14:03:48 +09:00
committed by GitHub
parent b11e1e37ed
commit e5e8743798

View File

@@ -368,7 +368,8 @@ export const useImagePreviewWidget = () => {
) => {
return node.addCustomWidget(
new ImagePreviewWidget(node, inputSpec.name, {
serialize: false
serialize: false,
canvasOnly: true
})
)
}