mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-31 05:19:53 +00:00
Fix node searchbox default value setting (#150)
This commit is contained in:
@@ -429,9 +429,9 @@ export class ComfyUI {
|
||||
options: ["default", "litegraph (legacy)"],
|
||||
defaultValue: "default",
|
||||
onChange: (value?: string) => {
|
||||
if (value === undefined) return;
|
||||
if (!app.canvas) return;
|
||||
|
||||
value = value || "default";
|
||||
const useLitegraphSearch = value === "litegraph (legacy)";
|
||||
app.canvas.allow_searchbox = useLitegraphSearch;
|
||||
document.dispatchEvent(
|
||||
|
||||
Reference in New Issue
Block a user