Ui_number - Dashboard 2.0 - Bug

Hello Community

I think I found a bug in this node. When I start the flow and I change the value of the ui_number node by using the spinner the new value is NOT sent. Only if you confirm by hitting enter for example, its working. I assume thats not correct.

Thanks.

Show us how you have configured the node. There are options you can set for when it should be sent.

I hope I post the code correctly:

[
    {
        "id": "4d94927175d5e5a9",
        "type": "ui-number-input",
        "z": "104b5885cd8560d2",
        "group": "1d306f8d71c2ac81",
        "name": "",
        "label": "number",
        "order": 5,
        "width": "2",
        "height": "1",
        "topic": "topic",
        "topicType": "msg",
        "min": "4",
        "max": "30",
        "step": "2",
        "tooltip": "",
        "delay": 300,
        "passthru": true,
        "sendOnDelay": false,
        "sendOnBlur": true,
        "sendOnEnter": true,
        "className": "",
        "clearable": false,
        "icon": "",
        "iconPosition": "left",
        "iconInnerPosition": "inside",
        "spinner": "default",
        "x": 300,
        "y": 1140,
        "wires": [
            [
                "21a0bc32f10c2dc8"
            ]
        ]
    },
    {
        "id": "1d306f8d71c2ac81",
        "type": "ui-group",
        "name": "Commands",
        "page": "258e479aeab0b094",
        "width": 6,
        "height": 1,
        "order": 1,
        "showTitle": true,
        "className": "",
        "visible": "true",
        "disabled": "false",
        "groupType": "default"
    },
    {
        "id": "258e479aeab0b094",
        "type": "ui-page",
        "name": "Analogue Outputs",
        "ui": "ca102a9a9c85e33c",
        "path": "/page2",
        "icon": "home",
        "layout": "grid",
        "theme": "6f9132fa3a02da28",
        "breakpoints": [
            {
                "name": "Default",
                "px": "0",
                "cols": "3"
            },
            {
                "name": "Tablet",
                "px": "576",
                "cols": "6"
            },
            {
                "name": "Small Desktop",
                "px": "768",
                "cols": "9"
            },
            {
                "name": "Desktop",
                "px": "1024",
                "cols": "12"
            }
        ],
        "order": 2,
        "className": "",
        "visible": "true",
        "disabled": "false"
    },
    {
        "id": "ca102a9a9c85e33c",
        "type": "ui-base",
        "name": "Mein Dashboard",
        "path": "/dashboard",
        "appIcon": "",
        "includeClientData": true,
        "acceptsClientConfig": [
            "ui-notification",
            "ui-control"
        ],
        "showPathInSidebar": false,
        "headerContent": "page",
        "navigationStyle": "fixed",
        "titleBarStyle": "default",
        "showReconnectNotification": true,
        "notificationDisplayTime": 1,
        "showDisconnectNotification": true,
        "allowInstall": false
    },
    {
        "id": "6f9132fa3a02da28",
        "type": "ui-theme",
        "name": "Standardthema",
        "colors": {
            "surface": "#ffffff",
            "primary": "#0094CE",
            "bgPage": "#eeeeee",
            "groupBg": "#ffffff",
            "groupOutline": "#cccccc"
        },
        "sizes": {
            "density": "default",
            "pagePadding": "12px",
            "groupGap": "12px",
            "groupBorderRadius": "4px",
            "widgetGap": "12px"
        }
    },
    {
        "id": "a1b1c5461fd53851",
        "type": "global-config",
        "env": [],
        "modules": {
            "@flowfuse/node-red-dashboard": "1.30.2"
        }
    }
]

Yes

As I said, there are options to specify when a value should be sent. You have

Which tells the node to send the value only on focus leave or if you press Enter. If you want it to send when you change the value then select Delay and the time after you stop changing it that you want the value sent. If you only want it sent when you change it, then clear the focus and Enter boxes.

1 Like

Yes, you`re right. With delay also ticked it works.
Thanks a lot.

How did you get to the situation that it was not ticked?

I think it was not ticked by default, don't know.

Yes, you are right. The logic behind that is that if it is enabled by default then entering via the keyboard may send a partial number before typing has completed.

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