predixdesignsystem / px-breadcrumbs

https://www.predix-ui.com/#/elements/px-breadcrumbs
Apache License 2.0
0 stars 2 forks source link

If selected-route is set, selecting a parent after selecting another child causes an error. #2

Open ppeyro opened 7 years ago

ppeyro commented 7 years ago

Expected behavior and actual behavior:

When a selected-route is defined, if you select a parent above it, then try to select another parent after that, you'll hit an error "item not found in graph".

Steps to reproduce the problem:

Environment:

Breadcrumbs: Redesign branch browser: Chrome, FF

Screenshots:

On load with preselected route:

screen shot 2017-07-27 at 12 40 08 pm

Selected one level up:

screen shot 2017-07-27 at 12 40 19 pm

Tried to select one more level up:

screen shot 2017-07-27 at 12 40 26 pm

Code example:

      <div>
        <px-breadcrumbs
          items="{{items}}"

          selected-route='["id1","id2","id3","id4","id5","id6","id7"]'
          filter-mode="true"
          enable-warnings="true"

        >
      </px-breadcrumbs>
    </div>