Customizing "slide" in render options causes icon loading to not appear #183
-
This is the code: render={{
iconLoading: () => <Loading />,
slide: ({
slide,
offset,
rect,
}: {
slide: Slide;
offset: number;
rect: ContainerRect;
}) => (
<img
alt={slide.alt}
key={slide.key}
src={slide.src}
width={rect.width}
/>
),
}} Now the loading doesn't appear. Edit: I also noticed dragging with mouse doesn't work anymore. I think there should be event handler properties that I spread in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This is expected behavior. Loading icon is rendered as part of the default image slide implementation. When you chose to render custom image slides, you are in control of implementing the whole UX including the loading icon.
Adding |
Beta Was this translation helpful? Give feedback.
This is expected behavior. Loading icon is rendered as part of the default image slide implementation. When you chose to render custom image slides, you are in control of implementing the whole UX including the loading icon.
Adding
draggable={false}
attribute should fix this.