pagination render empty tag
See original GitHub issueusing
swiper: ^6.1.1,
react-id-swiper: ^4.0.0
get nothing on pagination tag. It means it renders nothing in .pagination. Also, the fade effect does nothing.
here is my try:
// SlideShow.js
<Carousel
options={{
slidesPerView: 'auto',
pagination: {
el: '.swiper-pagination',
clickable: true
}
}}>
{listCard.map((card) => {
return (
<div key={card.id} className={styles.cardWrapper}>
<EventCard card={card} />
</div>
);
})}
</Carousel>
// Carousel.js
export const Carousel = ({ children, options }) => {
const defaultOption = {
effect: 'fade',
shouldSwiperUpdate: true,
rebuildOnUpdate: true,
grabCursor: true,
spaceBetween: 10
};
const sliderOption = Object.assign(defaultOption, options);
return <Swiper {...sliderOption}>{children}</Swiper>;
};
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
laravel 5.4 pagination links() method returns empty html
Solution : if paginator has only one page to show, it generates an empty links string.
Read more >Pagination page empty - WordPress.org
Hello, I have a problem with pagination, when I click on page 2 I get no results. ... There is debugging enabled on...
Read more >Pagination show blank/empty row when you're on the last ...
Encounter this problem when I'm on last page and if there's only 1 item in the table and I delete it. Table show...
Read more >react-paginate: Implementing pagination in React | by Urvashi
For example, if the currentPage is 2 (or 3rd page since indexing starts from 0), the offset becomes 20, This means that the...
Read more >Pagedlist pagination links anchor tags are empty / null
I am using Pagedlist for Pagination in my MVC project. Pagination is working for most of the cases. But in my FilterController and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I managed to fix the pagination by downgrading Swiper to version “5.4.5” as per this working example
https://codesandbox.io/s/pagination-dynamic-bullets-example-forked-rqu2q?file=/src/App.tsx
seems Swiper > 6.x.x already support React Component please check in here: https://swiperjs.com/react/ its work fine with the pagination