pagination
pagination copied to clipboard
onChange doesn't work
I tried onChange, onClick, in both itemRender and top level. Using Next.js
<Pagination current={this.state.currentPage} total={300} defaultPageSize={LIMIT}
showPrevNextJumpers={true} showTitle={false}
hideOnSinglePage={false} showLessItems={true}
itemRender={(current, type, element)=> type == 'page' ? <span onClick={()=> console.log('works?')}>{current}</span> : element}
onChange={(pageNum) => console.log(pageNum)}
onClick={(pageNum) => console.log(pageNum)}
/>
in the source, it says ul unselectable
Same here! But, when I try your test, return the page number... But, for some reason, when a put on a function, returns undefined...