mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-14 09:27:41 +00:00
fix: advanced widgets always visible regardless of setting (#9857)
## Summary - Fixes a bug where widgets marked as `advanced` were always visible, ignoring the "Always show advanced widgets on all nodes" setting - Root cause: `extractWidgetDisplayOptions` in `useGraphNodeManager.ts` read `widget.advanced` (always `undefined` on BaseWidget) instead of `widget.options?.advanced` (where `litegraphService` actually sets the flag) - Consistent with how `hidden` is already read from `widget.options.hidden` on the adjacent line ## Test plan - [ ] Load a node with advanced inputs (e.g. `LTXVScheduler`) - [ ] Verify `max_shift`, `base_shift`, `stretch`, `terminal` are hidden when "Always show advanced widgets on all nodes" is disabled - [ ] Verify they become visible when the setting is enabled or the per-node toggle is clicked - [ ] Verify the advanced toggle button appears on nodes with advanced widgets 🤖 Generated with [Claude Code](https://claude.com/claude-code) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9857-fix-advanced-widgets-always-visible-regardless-of-setting-3226d73d36508132b338d098fbf19433) by [Unito](https://www.unito.io) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -204,7 +204,7 @@ function safeWidgetMapper(
|
||||
|
||||
return {
|
||||
canvasOnly: widget.options.canvasOnly,
|
||||
advanced: widget.advanced,
|
||||
advanced: widget.options?.advanced ?? widget.advanced,
|
||||
hidden: widget.options.hidden,
|
||||
read_only: widget.options.read_only
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user