Comments (9)
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.
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.
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.
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.
Could we reopen this? Would be wonderful for our use case also.
from react-dropdown-tree-select.
@matejstrasek Sure! Feel free to send a PR for this!
from react-dropdown-tree-select.
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.
🎉 This issue has been resolved in version 1.18.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
from react-dropdown-tree-select.
🎉 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)
- Unable to serve the cloned repository on local host so as to make changes
- React useState error
- The searchTerm in the searchPredicate function is never an empty string HOT 7
- Expand to selected item
- rtl support HOT 2
- By default the last child is focused and checked HOT 2
- SetState is not working on react-dropdown-tree-select HOT 2
- Issue when click item in long scrollable list HOT 3
- react-dropdown-tree-select - Get all selected values HOT 3
- Render calls reset the search filter on the list HOT 12
- ADA incompatibility HOT 1
- useState is not getting updated HOT 1
- I'm having the same problem where useState isn't working and if I use it, the checkbox values disappear. HOT 1
- Clicking on label for radioSelect doesn't select a node HOT 2
- Nodes expanded state are not updated when search HOT 1
- Close the selection menu HOT 1
- How can I remove the tags that appear when a node is selected in the dropdown? HOT 2
- Parent node displayed as checked despite receiving checked: false
- custom renderer for label
- Dealing with too many pills
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 react-dropdown-tree-select.