# Strange button behavior (Dashboard 2.0)

**URL:** <https://discourse.nodered.org/t/strange-button-behavior-dashboard-2-0/93765>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [7 December 2024 16:15 UTC](https://discourse.nodered.org/t/strange-button-behavior-dashboard-2-0/93765 "2024-12-07T16:15:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)\
**Post date:** [7 December 2024 16:15 UTC](https://discourse.nodered.org/t/strange-button-behavior-dashboard-2-0/93765/1 "2024-12-07T16:15:32Z")

</div>

Using button node with dynamic properties:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/3/d34ae0da474987a28fb39117b20d94f238b5819e.png)  
I get:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/70286a978e719fbd876292dca756c7f156b12c7c.png)

Whatever I tried to change on the input, nothing changes what is shown on the button. Behavior exists for 3 buttons in total.

For testing, I connected a new button to the message and output is as expected:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/1/71deb9bcadae13d480dec29ca35e24deff563de5.png)

So basically it is working, but for some reason the original buttons that I was using and playing around so far do not work anymore.  
Something happened to the buttons that they do not work anymore. Seems that this is some old content still shown.  
I did not yet restart node red to see if that would solve it.

---

<div class="post-metadata">

**Author:** ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)\
**Post date:** [7 December 2024 16:21 UTC](https://discourse.nodered.org/t/strange-button-behavior-dashboard-2-0/93765/2 "2024-12-07T16:21:50Z")

</div>

It just hit me:  
The issue is, that I was previously sending a label with dynamic properties to those 3 button nodes. In the new message I do not have a label anymore, that is why they are still showing the old content.

So seems this behavior is intended, but can actually lead to this strange behavior not showing what you probably might expect.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 December 2024 16:56 UTC](https://discourse.nodered.org/t/strange-button-behavior-dashboard-2-0/93765/3 "2024-12-07T16:56:13Z")

</div>

If the property is NOT present in ui\_update it should not change the previously sent values.

---

<div class="post-metadata">

**Author:** ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)\
**Post date:** [7 December 2024 17:31 UTC](https://discourse.nodered.org/t/strange-button-behavior-dashboard-2-0/93765/4 "2024-12-07T17:31:38Z")

</div>

That is what I observed after some time. Since I previously sent some garbage via the label property I could not see any change with the icon property that I was expecting not realizing that there is some label content still present.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [7 December 2024 18:16 UTC](https://discourse.nodered.org/t/strange-button-behavior-dashboard-2-0/93765/5 "2024-12-07T18:16:54Z")

</div>

Not sure if this is relevant here but it's a good idea to reload the dashboard page after any change in the editor.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 December 2024 20:27 UTC](https://discourse.nodered.org/t/strange-button-behavior-dashboard-2-0/93765/6 "2024-12-07T20:27:18Z")

</div>

I think the ui-update storage is server side, so that would not have helped.

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [12 December 2024 00:54 UTC](https://discourse.nodered.org/t/strange-button-behavior-dashboard-2-0/93765/7 "2024-12-12T00:54:01Z")

</div>

I had a similar issue .. but a a full deployment solved the issue

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 January 2025 00:54 UTC](https://discourse.nodered.org/t/strange-button-behavior-dashboard-2-0/93765/8 "2025-01-11T00:54:52Z")

</div>

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