jbetancur / react-data-table-component

A responsive table library with built-in sorting, pagination, selection, expandable rows, and customizable styling.
https://react-data-table-component.netlify.app
Apache License 2.0
2.06k stars 413 forks source link

Second icons on rows per page element #1221

Closed alfi-dim closed 7 months ago

alfi-dim commented 8 months ago

Issue Check list

Describe the bug

There's a second icons on my rows per page element

To Reproduce

Steps to reproduce the behavior: Create component as docs recommended

Expected behavior

Only ONE icon on that element

Code Sandbox, Screenshots, or Relevant Code

my first table

<DataTable
    title="Data Rekap Lembur"
    columns={columns}
    data={recapData}
    customStyles={customStyles}
    noDataComponent="Tidak ada data"
    fixedHeader
    fixedHeaderScrollHeight="300px"
    progressPending={loadingFetchRecap}
    pagination
    paginationServer
    paginationTotalRows={paginationTotalRows}
    onChangeRowsPerPage={onChangeRowsPerPage}
    onChangePage={onChangePage}
  />

image

my second table

<DataTable
    title="Data Analisa Lembur"
    columns={columns}
    data={dataAnalytics}
    customStyles={customStyles}
    noDataComponent="Tidak ada data"
    fixedHeader
    fixedHeaderScrollHeight="300px"
    progressPending={loadingAnalytics}
    pagination
    paginationServer
    paginationTotalRows={totalDataAnalytics}
    onChangeRowsPerPage={handlerPerRowChange}
    onChangePage={handlePageChange}
  />

image

Versions (please complete the following information)

allan-vera commented 7 months ago

i see this too Screenshot 2024-04-01 at 1 09 39 PM

I solved it with this in a css file

.rdt_Pagination select {
  background: transparent;
}
alfi-dim commented 7 months ago

i see this too Screenshot 2024-04-01 at 1 09 39 PM

I solved it with this in a css file

.rdt_Pagination select {
  background: transparent;
}

Thanks! it solved my problem