remove extra preventDefault
This commit is contained in:
parent
f698680c15
commit
c3874e4de2
1 changed files with 1 additions and 2 deletions
|
@ -43,7 +43,7 @@ function Paginate(props: Props) {
|
||||||
return (
|
return (
|
||||||
// Hide the paginate controls if we are loading or there is only one page
|
// Hide the paginate controls if we are loading or there is only one page
|
||||||
// It should still be rendered to trigger the onPageChange callback
|
// It should still be rendered to trigger the onPageChange callback
|
||||||
<Form onSubmit={e => e.preventDefault()} style={totalPages <= 1 || loading ? { display: 'none' } : null}>
|
<Form style={totalPages <= 1 || loading ? { display: 'none' } : null}>
|
||||||
<fieldset-group class="fieldset-group--smushed fieldgroup--paginate">
|
<fieldset-group class="fieldset-group--smushed fieldgroup--paginate">
|
||||||
<fieldset-section>
|
<fieldset-section>
|
||||||
<ReactPaginate
|
<ReactPaginate
|
||||||
|
@ -63,7 +63,6 @@ function Paginate(props: Props) {
|
||||||
containerClassName="pagination"
|
containerClassName="pagination"
|
||||||
/>
|
/>
|
||||||
</fieldset-section>
|
</fieldset-section>
|
||||||
|
|
||||||
<FormField
|
<FormField
|
||||||
className="paginate-channel"
|
className="paginate-channel"
|
||||||
onKeyUp={handlePaginateKeyUp}
|
onKeyUp={handlePaginateKeyUp}
|
||||||
|
|
Loading…
Reference in a new issue