ember-select-2 icon indicating copy to clipboard operation
ember-select-2 copied to clipboard

Search for children not working after second level.

Open samdemaeyer opened this issue 10 years ago • 0 comments

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

samdemaeyer avatar Aug 06 '15 08:08 samdemaeyer