Notification Node with Input sends "OK" if input value is "1"

Hi there,

I am currently using Nodered Dashboard 2.19.4 and I noticed a strange behaviour on the notification node when it's mode is set to "OK/Cancel Dialog with Input".

The msg.payloud outcome of this node always contains what the user typed in as expected, except when the user typed "1" then the output on msg.payload is "OK".

I discovered that because I was using the input for password verification and "1" was a testpassword, that surprisingly never passed the password validation.

Can you confirm this issue? Is it already fixed in newer version?

Here are 3 Nodes to confirm:

[
    {
        "id": "4e5e3873.db1e38",
        "type": "inject",
        "z": "a11ab2f5.3aad",
        "name": "",
        "topic": "",
        "payload": "Enter Text",
        "payloadType": "str",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 120,
        "y": 260,
        "wires": [
            [
                "1527884b.f51288"
            ]
        ]
    },
    {
        "id": "1527884b.f51288",
        "type": "ui_toast",
        "z": "a11ab2f5.3aad",
        "position": "prompt",
        "displayTime": "3",
        "highlight": "",
        "sendall": true,
        "outputs": 1,
        "ok": "OK",
        "cancel": "Cancel",
        "raw": false,
        "topic": "",
        "name": "",
        "x": 310,
        "y": 260,
        "wires": [
            [
                "c11e595d.df0ae8"
            ]
        ]
    },
    {
        "id": "c11e595d.df0ae8",
        "type": "debug",
        "z": "a11ab2f5.3aad",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 510,
        "y": 260,
        "wires": []
    }
]

I think it has been fixed in more recent versions.
image

Ok thanks for the info! Good to know it is fixed.

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