Skip to content

Select the parent doesn't mean to select all children inside #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ioterateam opened this issue May 2, 2019 · 3 comments
Closed

Select the parent doesn't mean to select all children inside #244

ioterateam opened this issue May 2, 2019 · 3 comments

Comments

@ioterateam
Copy link

Is your feature request related to a problem? Please describe.
I want to give an authentication to some role.

Super Admin can access :

  • Asia
    • Singapore
    • Indonesia
      • Jakarta
      • West Java
      • East Java

Technician Singapore can only access :

  • Asia
    • Singapore

Technician Indonesia can only access :

  • Asia
    • Indonesia
      • East Java

Describe the solution you'd like
I like to use this react-dropdown-tree-select as my solution, if i can select parent without automatically select all children inside. I was thought by using props simpleSelect={true} would be a solution to my case, but it's not.

@ellinge
Copy link
Collaborator

ellinge commented May 2, 2019

There's an undocumented property (in the readme) Hierarchical which avoids checking children.
You can try it here:
https://dowjones.github.io/react-dropdown-tree-select/#/story/options

@ioterateam
Copy link
Author

Yeah i just finally figure it out about that hierarchical props after i try it on local service , thanks btw @ellinge fyi.
I just didn't know why it's not work on codesandbox.

@mrchief
Copy link
Collaborator

mrchief commented May 2, 2019

There's an undocumented property (in the readme)

That seems like an oversight. Created #245.

I just didn't know why it's not work on codesandbox.

I checked the sandbox and the version of the control there is older. If you update the dependency to v1.17.0 or higher, you can see it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants