disable autocomplete on math node
This commit is contained in:
@@ -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", ),
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user