FlowFuse / node-red-dashboard

https://dashboard.flowfuse.com
Apache License 2.0
200 stars 48 forks source link

reset of value on received message with no msg.payload #1363

Open Subnum12 opened 3 weeks ago

Subnum12 commented 3 weeks ago

Current Behavior

Lets take ui-text for example. If you send a message to the node, msg.payload will appear in UI. If you now send another message not having msg.payload property, the value in UI will disappear.

Expected Behavior

This is the requirement from manual "Displays a non-editable text field on the user interface. Each received msg.payload will update the value shown alongside the (optional) label."

I would expect if send message with only property msg.ui_update.class or msg.ui_update.color the value in UI remains (as it does with label for example). Only received property's will/should get updated.

To clear value you have to send empty msg.payload property within the message.

Steps To Reproduce

No response

Environment

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

colinl commented 3 weeks ago

I can confirm that I also see this.

JulianStremel commented 3 weeks ago

Is this behavior present on all nodes that react to msg.payload ? I can't test this myself at the moment.

Subnum12 commented 3 weeks ago

I guess it only belongs to ui-text. I've tested ui-text-input, here everything works as expected.