Pop-up being cancelled immediately

Node-RED version: v2.2.0
Node.js version: v16.13.2
Windows_NT 10.0.19044 x64 LE

Please see the flow below. It's just a button, a change node to set the message, and a pop-up node set for user input. By itself, in its own flow, it works perfectly. Hit the button, message is set, pop-up appears with the right message and OK/cancel.

Now when that very simple flow is copied and pasted into my main project flow when the button is pressed the pop-up comes up and then is immediately dismissed with no user input. Debug output shows a "Cancel" message being emitted from the pop-up. Debug output also shows only the single message being input to the pop-up, i.e. no null messages are going in to cancel it.

I'm stumped!

[
    {
        "id": "4d83441e48dfd126",
        "type": "ui_button",
        "z": "3e63f240e4cb08c6",
        "name": "Settings",
        "group": "1e9cba754a4c60cd",
        "order": 1,
        "width": 1,
        "height": 1,
        "passthru": false,
        "label": "",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "className": "",
        "icon": "settings",
        "payload": "",
        "payloadType": "str",
        "topic": "topic",
        "topicType": "msg",
        "x": 420,
        "y": 180,
        "wires": [
            [
                "4cf6e7197676780a"
            ]
        ]
    },
    {
        "id": "1e9855736229cac1",
        "type": "ui_toast",
        "z": "3e63f240e4cb08c6",
        "position": "prompt",
        "displayTime": "3",
        "highlight": "",
        "sendall": true,
        "outputs": 1,
        "ok": "OK",
        "cancel": "Cancel",
        "raw": false,
        "className": "",
        "topic": "",
        "name": "Enter IP Address",
        "x": 810,
        "y": 180,
        "wires": [
            []
        ]
    },
    {
        "id": "4cf6e7197676780a",
        "type": "change",
        "z": "3e63f240e4cb08c6",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "Enter IP address of amplifier",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 600,
        "y": 180,
        "wires": [
            [
                "1e9855736229cac1"
            ]
        ]
    },
    {
        "id": "1e9cba754a4c60cd",
        "type": "ui_group",
        "name": "KPA1500 Control",
        "tab": "a0d60a2bec02c6c5",
        "order": 2,
        "disp": false,
        "width": 30,
        "collapse": false,
        "className": ""
    },
    {
        "id": "a0d60a2bec02c6c5",
        "type": "ui_tab",
        "name": "WU2O STATION CONTROLLER",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

I cannot replicate your issue with this flow.

I guess you need to look at the rest of the flow where you are pasting it.

I was hoping it was something obvious that someone had seen before.

Here's the entire flow in question where it is misbehaving.

The intent of the flow is to display data from, and provide control of, an amateur radio amplifier. I started to add to the flow to allow the user to set the IP and MAC of the amp rather than have it hard coded.

It's a larger flow than can be pasted here so it is attached as a .txt file.

Thanks!

flow.txt (52.7 KB)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.