File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/react-radfish/table Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -187,13 +187,15 @@ const RADFishTable = ({
187187 { paginationOptions && (
188188 < div className = "radfish-pagination-controls" >
189189 < Button
190+ type = "button"
190191 onClick = { ( ) => handlePageChange ( 0 ) }
191192 disabled = { pageIndex === 0 }
192193 data-testid = "first-page"
193194 >
194195 < Icon . FirstPage aria-label = "Go to first page" />
195196 </ Button >
196197 < Button
198+ type = "button"
197199 onClick = { ( ) => handlePageChange ( pageIndex - 1 ) }
198200 disabled = { pageIndex === 0 }
199201 data-testid = "previous-page"
@@ -204,13 +206,15 @@ const RADFishTable = ({
204206 Page { pageIndex + 1 } of { totalPages }
205207 </ span >
206208 < Button
209+ type = "button"
207210 onClick = { ( ) => handlePageChange ( pageIndex + 1 ) }
208211 disabled = { pageIndex >= totalPages - 1 }
209212 data-testid = "next-page"
210213 >
211214 < Icon . ArrowForward aria-label = "Go to next page" />
212215 </ Button >
213216 < Button
217+ type = "button"
214218 onClick = { ( ) => handlePageChange ( totalPages - 1 ) }
215219 disabled = { pageIndex >= totalPages - 1 }
216220 data-testid = "last-page"
You can’t perform that action at this time.
0 commit comments