Ant-design-mobile: Pagination组件onChange后参数只有当前页码,没有event对象

Created on 13 Jul 2017  ·  3Comments  ·  Source: ant-design/ant-design-mobile

What problem does this feature solve?

希望阻止事件传播

What does the proposed API look like?

onChange(currentPage, e){
e.stopPropagation()
......
}

question

Most helpful comment

function handleClick(e) {
  // do whatever you like with event object
}
<div onClick={handleClick}>
  <Pagination />
</div>

All 3 comments

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: https://github.com/ant-design/ant-design/issues/4897

function handleClick(e) {
  // do whatever you like with event object
}
<div onClick={handleClick}>
  <Pagination />
</div>

@paranoidjk thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jkvim picture jkvim  ·  4Comments

myLazyProgrammer picture myLazyProgrammer  ·  4Comments

paranoidjk picture paranoidjk  ·  4Comments

zhangshuaidan picture zhangshuaidan  ·  3Comments

18019675002 picture 18019675002  ·  4Comments