Skip to content

Commit 533bea7

Browse files
rmv125tannerlinsley
authored andcommitted
use button type button in pagination to prevent form submitting if using table inside of the form (TanStack#122)
1 parent 218cf42 commit 533bea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pagination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import classnames from 'classnames'
44
// import _ from './utils'
55

66
const defaultButton = (props) => (
7-
<button {...props} className='-btn'>{props.children}</button>
7+
<button type='button' {...props} className='-btn'>{props.children}</button>
88
)
99

1010
export default React.createClass({

0 commit comments

Comments
 (0)