predixdesignsystem / px-breadcrumbs

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

Breadcrumbs don't display if data is fetched, and set later #8

Open gstroup opened 7 years ago

gstroup commented 7 years ago

Expected behavior and actual behavior:

I want to fetch assets from a service, then set the asset data as the "items" property of px-breadcrumbs. When I do this the breadcrumbs do not display. (widths is zero.) If I set a fixed with in pixels, then breadcrumbs will display.

Steps to reproduce the problem:

Try setting the "items" property with javascript, using a setTimeout function to delay. screen shot 2017-08-25 at 9 56 47 am

Environment

latest version. chrome 60.

Screenshots (optional, but very helpful):

Code examples help us better understand the issue

Tried to use codepen, but it didn't work. Probably need to redraw the component after "items" property is set.