react-lazyload icon indicating copy to clipboard operation
react-lazyload copied to clipboard

Placeholder is not working.

Open AxeemHaider opened this issue 4 years ago • 1 comments

If I set any placeholder it will not work.

Here is an example.

<LazyLoad
        placeholder={<ReactLoading/>}
        height={180}
      >
        <img
          src={tile.src}
          alt={tile.title}
          onClick={() => props.onClick(imageIndex, tile.id)}
        />
      </LazyLoad>

RectLoading returns <Skeleton variant="rect" width={210} height={118} /> from material-ui

I also try to add some text but nothing to show.

<LazyLoad
        placeholder={<Typography variant="h1">Placeholder</Typography>}
        height={180}

     .... other code

can you please look at this issue

AxeemHaider avatar Aug 11 '20 07:08 AxeemHaider