Code Monkey home page Code Monkey logo

Comments (9)

mrchief avatar mrchief commented on May 23, 2024

simpleSelect is the same as HTML select, except for autosuggest and tags. When I added that, I didn't think of a use case that combines tree and single value select.

It should be easy to support though - it currently stops processing the tree if simpleSelect is true. Removing that shortcircuit will accomplish what you're looking for.

Feel free to send a PR if you need this soon.

from react-dropdown-tree-select.

vikrametc avatar vikrametc commented on May 23, 2024

Thanks Hrusikesh for your reply.
I am not seeing any option in the dropdown itself when I passed the data with children and give simpleSelect as true.
We do have a requirement for user to see the options as tree hierarchy and allow only single select.
I do not want to mess your code with the PR, if possible could you please make required modification to incorporate the changes?

one more thing: do we need to provide data in special format for single select or data having children should work fine?

from react-dropdown-tree-select.

mrchief avatar mrchief commented on May 23, 2024

I do not want to mess your code with the PR, if possible could you please make required modification to incorporate the changes?

PRs do not mess up the code - you'll be working on your own copy of the code. If you're not familiar with them, then I encourage you to read this guide.

I'm currently swamped with other stuff. I can make the changes but I cannot promise a timeline.

one more thing: do we need to provide data in special format for single select or data having children should work fine?

You do not have to do anything special there. Same data will work as is. Feel free to play with the online demo or CodeSandboxes.

from react-dropdown-tree-select.

stale avatar stale commented on May 23, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from react-dropdown-tree-select.

matejstrasek avatar matejstrasek commented on May 23, 2024

Could we reopen this? Would be wonderful for our use case also.

from react-dropdown-tree-select.

mrchief avatar mrchief commented on May 23, 2024

@matejstrasek Sure! Feel free to send a PR for this!

from react-dropdown-tree-select.

stale avatar stale commented on May 23, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from react-dropdown-tree-select.

mrchief avatar mrchief commented on May 23, 2024

🎉 This issue has been resolved in version 1.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

from react-dropdown-tree-select.

mrchief avatar mrchief commented on May 23, 2024

🎉 This issue has been resolved in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

from react-dropdown-tree-select.

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.