Git Product home page Git Product logo

Comments (8)

colinl avatar colinl commented on June 20, 2024

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.

18802496555 avatar 18802496555 commented on June 20, 2024

is this a bug or it is designed to work only with multi-selection?

from node-red-dashboard.

colinl avatar colinl commented on June 20, 2024

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.

bartbutenaers avatar bartbutenaers commented on June 20, 2024

@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.

colinl avatar colinl commented on June 20, 2024

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.

bartbutenaers avatar bartbutenaers commented on June 20, 2024

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):

image

from node-red-dashboard.

bartbutenaers avatar bartbutenaers commented on June 20, 2024

Pull request created.

from node-red-dashboard.

joepavitt avatar joepavitt commented on June 20, 2024

Closed by #775

from node-red-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.