Skip to content

Conversation

@pfgallagher
Copy link

This code originates from the following PRs in the main react-select repo: #2750 and #3265, written / submitted by Lolobstant and mastergenius, respectively. This is simply a re-submittal of #3265; I haven't made any modifications of my own.

I'm not exactly sure why these PRs were closed, given this appears to be a popular feature request. It looks like it may be due to failing builds. I was able to get this to build locally, so perhaps the tests have changed since the previous PR?

If there are any problems with the build, I'm happy to take care of them. Additionally, if any of the changes to the docs, tests, etc. that Lolobstant originally made need to be integrated too, I can handle those, as well.

Thanks!

This code originates from the following PRs in the main react-select repo: JedWatson#2750 and JedWatson#3265, written / submitted by Lolobstant and mastergenius, respectively. This is simply a re-submittal of JedWatson#3265; I have not made any modifications.
@changeset-bot
Copy link

changeset-bot bot commented Dec 4, 2019

⚠️ No Changeset found

Latest commit: 53b9bed

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dlipeles
Copy link

👍

@angle943
Copy link

🙏

@Faran52
Copy link

Faran52 commented Jan 6, 2020

Please merge this I need this feature.

@Iuriy-Budnikov
Copy link

Any updates?

@Iuriy-Budnikov
Copy link

1 year left and there is no support of nested properties!

@egertaia
Copy link

egertaia commented Mar 16, 2020

As I am currently away from the computer I cant submit a commit to this pull-request.
You could add this to increase coverage instead of decreasing it.
Maybe this increases the chance for this to be merged after few years of waiting.

test('to render nested groups if there is any', () => {
  const options = [
    {
      label: 'group 1',
      options: [
        {
          label: 'nested group 1',
          options: [
            {
              label: 'nested 1',
              value: 1
            },
            {
              label: 'nested 2',
              value: 2
            }
          ]
        }
      ],
    }
  ];
  const selectWrapper = mount(
    <Select options={options} menuIsOpen inputValue="" />
  );

  expect(selectWrapper.find('Group').length).toBe(2);
  expect(selectWrapper.find('Group').find('Option').length).toBe(2);
});

@egertaia
Copy link

@flexdinesh Do you think this is something we could get merged as well?
This adds a well requested feature to nest something even further.

@marcelltoth
Copy link

marcelltoth commented Mar 22, 2020

Implemented in my public fork react-select-reborn version 3.2.0. Available on NPM.

@jrock17
Copy link

jrock17 commented Apr 27, 2020

Definitely need this. Thanks!

@sdivelbiss
Copy link

👍

1 similar comment
@dlipeles
Copy link

dlipeles commented May 7, 2020

+1

@ivoreis
Copy link

ivoreis commented May 17, 2020

@JedWatson / @gwyneplaine / @flexdinesh any blockers with this PR?

@bladey bladey added pr/needs-review PRs that need to be reviewed to determine outcome pr/priority PRs that should be addressed sooner rather than later labels May 26, 2020
@bladey bladey added pr/enhancement PRs that are specifically enhancing the project and removed category/enhancement labels Jun 24, 2020
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 8, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 53b9bed:

Sandbox Source
react-codesandboxer-example Configuration

@bladey bladey requested review from JedWatson and bladey July 8, 2020 05:19
@bladey bladey added pr/in-review PRs currently in review by maintainers for the next release and removed pr/needs-review PRs that need to be reviewed to determine outcome labels Jul 8, 2020
@bladey
Copy link
Contributor

bladey commented Jul 8, 2020

This looks great @pfgallagher, apologies for the slow response.

I've created a working example here - https://codesandbox.io/s/react-codesandboxer-example-8xxyx?file=/index.js

We will need updates to documentation and tests as you suggested, but hold off until I can speak to @JedWatson, we can then get this merged.

@tofsjonas
Copy link

Come on @JedWatson, you can do it!!!!! 🏃‍♂️🏃‍♀️🏃💐

@bladey bladey removed the pr/in-review PRs currently in review by maintainers for the next release label Aug 24, 2020
@bladey bladey added the pr/in-review PRs currently in review by maintainers for the next release label Aug 24, 2020
@AndrewKarasek
Copy link

Hey @JedWatson are there any plans to merge this? Happy to contribute to the docs & tests if those are the blockers?

@ivoreis
Copy link

ivoreis commented Nov 3, 2020

Hi @bladey, do you know what the current blockers are? Anything we can do to help?

@Methuselah96
Copy link
Collaborator

Methuselah96 commented Nov 14, 2020

I've started a fork of react-select. Feel free to resubmit this PR on the fork and we can get it merged and released.

EDIT: 🎉 I've archived the fork now that we've got some momentum in this repo and Jed is involved again. Sorry for the disturbance!

@arushs
Copy link

arushs commented Feb 10, 2021

Anything blocking this merge now?

@ebonow
Copy link
Collaborator

ebonow commented Feb 10, 2021

Greetings,

Much of the primary focus has been on trying to resolve underlying issues and making a transition to TypeScript.

Nested groups do represent a bit of a concern in regards to code complexity as the MenuList would now be recursively traversing the options and as the buildFocusableOptionsFromCategorizedOptions is currently implemented, the options rendering does likely require a bit more attention. Additionally there are accessibility concerns to be addressed already regarding Groups let alone how to properly convey nested group information via a screen reader.

I have created a Feature Request discussion here to gauge interest and talk through some of these things.

@vaasu
Copy link

vaasu commented Jul 17, 2021

can anyone fix the merge conflicts and merge this?

@ankitdsgn
Copy link

How to style the nested labels? I can't find anything :) plz help

@kaiiiiiiiii
Copy link

Any updates on this one @JedWatson ?

@Anjups007
Copy link

Can we have this feature published please.

@naheller
Copy link

two. years. and still not merged. open source is tough!

@HabibaGadalla
Copy link

👀

@jsutaria
Copy link

+1 need this

@MontejoJorge
Copy link

👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/enhancement PRs that are specifically enhancing the project pr/in-review PRs currently in review by maintainers for the next release pr/priority PRs that should be addressed sooner rather than later

Projects

None yet

Development

Successfully merging this pull request may close these issues.