You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i expected when the current doesn't change, the input value should be 1.
i received "the input value is 2", currentInputValue becomes 2, but current is still 1
i guess the problem is caused by this part.
// handleChange
if (!('current' in this.props)) {
this.setState({
current: newPage,
});
}
if (newPage !== currentInputValue) {
this.setState({
currentInputValue: newPage,
});
}
should the design can be "when found current in props, the currentInputValue can not be changed"?
the following problem is how to due with the change event of input
thank you
The text was updated successfully, but these errors were encountered:
when i use the pagination with props
{ simple: true, current: 1, onChange=() => {...}}
i met a bug, the current is be controlled by me, but the input is not.
the example is
i expected when the current doesn't change, the input value should be 1.
i received "the input value is 2", currentInputValue becomes 2, but current is still 1
i guess the problem is caused by this part.
should the design can be "when found current in props, the currentInputValue can not be changed"?
the following problem is how to due with the change event of input
thank you
The text was updated successfully, but these errors were encountered: