Comments (8)
I can confirm that sending an empty array does not clear it, and neither does an empty string. However, if the node is changed to multi-select then an empty array does clear it.
from node-red-dashboard.
is this a bug or it is designed to work only with multi-selection?
from node-red-dashboard.
There is a bug, there should be a way of clearing single selection dropdowns. Whether, for single selection, it should be an empty string (which seems logical to me) or should still be an empty array I will leave to the developers. Perhaps both options should work in both cases.
from node-red-dashboard.
@colinl,
Last week I had created a pull request for dynamic control of radiobuttons, which can be cleared using an empty string. I will have a look to create a PR to do the same for drpodowns tonight.
Bart
from node-red-dashboard.
The docs currently say it should be an empty array. Whether it should also allow an empty string I don't know.
from node-red-dashboard.
Yes indeed. An empty array seems to make more sense to me compared to an empty string, because the dropdown can contain different kind of data types (i.e. not only strings):
from node-red-dashboard.
Pull request created.
from node-red-dashboard.
Closed by #775
from node-red-dashboard.
Related Issues (20)
- How to use v-date-input lab controls ? HOT 4
- UI Notification - Not positioning correctly HOT 1
- Add css to change icon size HOT 7
- Changing a theme color changes all the themes color HOT 3
- Inputs and Default Values for a NodeRED Forms HOT 2
- Dashboard 2 V1.11.1 - Radio Button: false emmits null instead of false HOT 3
- Flowfuse Dashboard 2 doesn't hide chrome searchbar on mobile HOT 3
- Dashboard 2: msg sent to dashboard nodes on other page do not display information unless msg._client is deleted. HOT 15
- ui-chart: series property of JSON array of keys doesn't work for object payload
- ui-chart: allow changing series name when using JSON type HOT 1
- Add new "Mobile" breakpoint HOT 1
- Third party ui node, in onInput: function (msg, send, done), send(object) sends original msg, not object
- Can be overriden at runtime by sending a particular msg to the ui-form node ? HOT 2
- Item text not showing in dropdown menus HOT 3
- HowTo: Use button from dashboard 2.0 to get an external Link. HOT 3
- ui-text-input, multiline text area does not fill available space. HOT 1
- File Input: Support larger file uploads
- ui-dropdown doesnt display selected value when sent via. msg HOT 4
- ui-dropdown doesnt pass correct value for multiple select options - and when msg pass through is enabled. HOT 2
- ui text box - when user clears the data - no event gets generated. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-dashboard.