diff --git a/py/math_expression.py b/py/math_expression.py index 1053902..abd4921 100644 --- a/py/math_expression.py +++ b/py/math_expression.py @@ -41,7 +41,7 @@ class MathExpression: def INPUT_TYPES(cls): return { "required": { - "expression": ("STRING", {"multiline": True, "dynamicPrompts": False}), + "expression": ("STRING", {"multiline": True, "dynamicPrompts": False, "pysssss.autocomplete": False}), }, "optional": { "a": ("INT,FLOAT,IMAGE,LATENT", ), diff --git a/web/js/autocompleter.js b/web/js/autocompleter.js index 5f017ef..6ef9772 100644 --- a/web/js/autocompleter.js +++ b/web/js/autocompleter.js @@ -186,7 +186,7 @@ app.registerExtension({ ComfyWidgets.STRING = function (node, inputName, inputData) { const r = STRING.apply(this, arguments); - if (inputData[1]?.multiline) { + if (inputData[1]?.multiline && inputData[1]?.["pysssss.autocomplete"] !== false) { new TextAreaAutoComplete(r.widget.inputEl); }