fix(skeleton-text): unkey paragraph rows

Chance of duplicate keys is high
This commit is contained in:
Eric Liu 2020-10-15 05:47:45 -07:00
commit 7b995db968
2 changed files with 5 additions and 1 deletions

View file

@ -19,6 +19,10 @@
<SkeletonText paragraph /> <SkeletonText paragraph />
### Paragraph with custom line count
<SkeletonText paragraph lines={8} />
### Paragraph with max width ### Paragraph with max width
<SkeletonText paragraph width="50%" /> <SkeletonText paragraph width="50%" />

View file

@ -45,7 +45,7 @@
{#if paragraph} {#if paragraph}
<div {...$$restProps} on:click on:mouseover on:mouseenter on:mouseleave> <div {...$$restProps} on:click on:mouseover on:mouseenter on:mouseleave>
{#each rows as { width }, i (width)} {#each rows as { width }}
<p <p
class:bx--skeleton__text="{true}" class:bx--skeleton__text="{true}"
class:bx--skeleton__heading="{heading}" class:bx--skeleton__heading="{heading}"