File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ import ButtonLikeAnchor from "./ButtonLikeAnchor";
4040import { ModalHandle } from "./modals/Modal" ;
4141import { ParseKeys } from "i18next" ;
4242
43- const containerPageSize = React . createRef < HTMLButtonElement > ( ) ;
43+ const containerPageSize = React . createRef < HTMLDivElement > ( ) ;
4444
4545type TemplateMap = {
4646 [ key : string ] : ( { row } : { row : any } ) => JSX . Element | JSX . Element [ ]
@@ -292,10 +292,12 @@ const Table = ({
292292
293293 { /* Selection of page size */ }
294294 < div id = "tbl-view-controls-container" >
295- < button
295+ < div
296296 className = "drop-down-container small flipped"
297297 onClick = { ( ) => setShowPageSizes ( ! showPageSizes ) }
298298 ref = { containerPageSize }
299+ role = "button"
300+ tabIndex = { 0 }
299301 >
300302 < span > { pagination . limit } </ span >
301303 { /* Drop down menu for selection of page size */ }
@@ -312,7 +314,7 @@ const Table = ({
312314 ) ) }
313315 </ ul >
314316 ) }
315- </ button >
317+ </ div >
316318
317319 { /* Pagination and navigation trough pages */ }
318320 < div className = "pagination" >
You can’t perform that action at this time.
0 commit comments