FlowFuse / FlowFuse/node-red-dashboard
Dropdown remembers properties passed on it's input when a selection is made
- Dominant language
- HTML
- Stars
- 355
- Forks
- 82
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 24
Description
### Current Behavior
If I send something to the dropdown via it's input, for example msg.foo = "hello"
If I do a selection afterwards in the dashboard, msg.foo will persist and be sent out the node's output.
### Expected Behavior
The dropdown should not store or remember incoming messages.
### Steps To Reproduce
```
[{"id":"b5236b2c6a2bea9a","type":"ui-dropdown","z":"d496b21b2379637d","group":"fa05e28cdf35279d","name":"","label":"Select Option:","tooltip":"","order":1,"width":0,"height":0,"passthru":true,"multiple":false,"chips":false,"clearable":false,"options":[{"label":"1","value":"1","type":"str"},{"label":"2","value":"2","type":"str"},{"label":"3","value":"3","type":"str"}],"payload":"","topic":"topic","topicType":"msg","className":"","typeIsComboBox":true,"msgTrigger":"onChange","x":520,"y":600,"wires":[["6bd776b4341212a3"]]},{"id":"6bd776b4341212a3","type":"debug","z":"d496b21b2379637d","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":880,"y":600,"wires":[]},{"id":"6538f5b47fed01e0","type":"inject","z":"d496b21b2379637d","name":"","props":[{"p":"payload"},{"p":"foo","v":"hello","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":260,"y":600,"wires":[["b5236b2c6a2bea9a"]]},{"id":"05b1d8af05a857f2","type":"comment","z":"d496b21b2379637d","name":"1. inject property foo once","info":"","x":270,"y":540,"wires":[]},{"id":"4d631d712224709b","type":"comment","z":"d496b21b2379637d","name":"2. make a selection in the dashboard","info":"","x":590,"y":540,"wires":[]},{"id":"706ce35eb38b48b2","type":"comment","z":"d496b21b2379637d","name":"3. the foo property is still output","info":"","x":950,"y":540,"wires":[]},{"id":"fa05e28cdf35279d","type":"ui-group","name":"Shortcuts","page":"1b03ed82bc9475f7","width":"2","height":1,"order":2,"showTitle":true,"className":"","visible":"true","disabled":"false","groupType":"default"},{"id":"1b03ed82bc9475f7","type":"ui-page","name":"Page 1","ui":"2ffa858211c877a2","path":"/page1","icon":"home","layout":"grid","theme":"eb073b1928676e1f","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":1,"className":"","visible":"true","disabled":"false"},{"id":"2ffa858211c877a2","type":"ui-base","name":"My Dashboard","path":"/dashboard","appIcon":"","includeClientData":true,"acceptsClientConfig":["ui-notification","ui-control"],"showPathInSidebar":false,"headerContent":"page","navigationStyle":"default","titleBarStyle":"default","showReconnectNotification":true,"notificationDisplayTime":1,"showDisconnectNotification":true},{"id":"eb073b1928676e1f","type":"ui-theme","name":"Default Theme","colors":{"surface":"#ffffff","primary":"#0094CE","bgPage":"#eeeeee","groupBg":"#ffffff","groupOutline":"#cccccc"},"sizes":{"density":"default","pagePadding":"12px","groupGap":"12px","groupBorderRadius":"4px","widgetGap":"12px"}}]
```
### Environment
- Dashboard version: 1.22.1
- Node-RED version: 4.0.9
- Node.js version: 22
### Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.