Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onChange doesn't work #248

Open
Multi-Thinker opened this issue Feb 4, 2020 · 1 comment
Open

onChange doesn't work #248

Multi-Thinker opened this issue Feb 4, 2020 · 1 comment

Comments

@Multi-Thinker
Copy link

Multi-Thinker commented Feb 4, 2020

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

@tainefreitas
Copy link

tainefreitas commented Feb 26, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants