Revert "don't try to rehide defaultInput widget"

This reverts commit c8590fbe09.
This commit is contained in:
Chris 2023-09-11 16:10:10 +10:00
parent c8590fbe09
commit 849ac8b6be

View File

@ -158,10 +158,10 @@ app.registerExtension({
if (this.inputs) {
for (const input of this.inputs) {
if (input.widget && !input.widget.config[1]?.forceInput) {
if (input.widget && !input.widget.config[1]?.forceInput && !input.widget.config[1]?.defaultInput) {
const w = this.widgets.find((w) => w.name === input.widget.name);
if (w) {
if (!input.widget.config[1]?.defaultInput) hideWidget(this, w);
hideWidget(this, w);
} else {
convertToWidget(this, input)
}