Code Monkey home page Code Monkey logo

Comments (3)

vladmoroz avatar vladmoroz commented on May 28, 2024

Could you give an example of what you are trying to achieve and the code you expected to work?

from themes.

bimal-saggu avatar bimal-saggu commented on May 28, 2024

Could you give an example of what you are trying to achieve and the code you expected to work?

I tried to fetch dynamic values (strings) from SQL database using a map function to the items of the Select component (<Select.Item>) by using the value property which can be displayed on the dropdown element when selected, it was a success. But, the moment we set the value property to null, it shows an error saying values cannot be empty string which was not the case in previous versions.
Coming to <Select.Trigger />, in the previous versions it consisted a property called placeholder which can be set as a default value, it doesn't exist in the latest version.
Due to this issue, I downgraded radixui/themes to the older version for my personal project, it then worked. But, it still has a problem with the non-existence of placeholder property in the <Select.Trigger> element.

from themes.

vladmoroz avatar vladmoroz commented on May 28, 2024

Can you not render the items with empty values? I'm not sure I understand the problem otherwise.

If you need to display a placeholder, Select.Root may initially contain an empty value. However, individual items are always expected to hold a value that they represent.

from themes.

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.