pagination icon indicating copy to clipboard operation
pagination copied to clipboard

onChange doesn't work

Open Multi-Thinker opened this issue 5 years ago • 1 comments

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

Multi-Thinker avatar Feb 04 '20 11:02 Multi-Thinker

Same here! But, when I try your test, return the page number... But, for some reason, when a put on a function, returns undefined...

tainefreitas avatar Feb 26 '20 18:02 tainefreitas