remove extra preventDefault

This commit is contained in:
jessop 2019-09-25 22:38:23 -04:00 committed by Sean Yesmunt
parent f698680c15
commit c3874e4de2

View file

@ -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}