Skip to content
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

Search for children not working after second level. #116

Open
samdemaeyer opened this issue Aug 6, 2015 · 0 comments
Open

Search for children not working after second level. #116

samdemaeyer opened this issue Aug 6, 2015 · 0 comments

Comments

@samdemaeyer
Copy link

Hi, we are using this plugin in our application. However, when we use the dropdown with nested values, the search does not go past the 2nd level of nesting. The structure would be like this:

{
  text: 'Main title',
  children: [
    {
      text: 'Subtitle - 1',
      children: [
        {
          name: 'level 3 - 1',
          id: 'dasdsad'
        },
        {
          name: 'level 3 - 2',
          id: 'dasdsad'
        },
        {
          name: 'level 3 - 3',
          id: 'dasdsad'
        }
      ]
    },
    {
      text: 'Subtitle - 2',
      children: [
        {
          name: 'level 3 - 1',
          id: 'dasdsad'
        },
        {
          name: 'level 3 - 2',
          id: 'dasdsad'
        },
        {
          name: 'level 3 - 3',
          id: 'dasdsad'
        }
      ]
    }
  ]
},

In the template, it would be set like this {{select-2 optionLabelPath="name"}}. It renders fine:
screen shot 2015-08-06 at 09 55 48
But when you try searching, it will not find the 3rd level:
screen shot 2015-08-06 at 09 56 06

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

1 participant