We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<DataTable ref={dt} value={products} selection={selectedProducts} onSelectionChange={(e) => { if (Array.isArray(e.value)) { setSelectedProducts(e.value); } }} sortMode="multiple" dataKey="_id" lazy onSort={(e) => console.log(e)} onPage={onPageChange} first={first} paginator totalRecords={page?.totalDocs} rows={10} rowsPerPageOptions={[5, 10, 25]} paginatorTemplate=" PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown" currentPageReportTemplate="Showing {totalRecords} products" globalFilter={globalFilter} header={header} selectionMode="multiple" > <Column field="shortCode" header="ShortCode" style={{ minWidth: "12rem" }} > <Column field="name" header="Name" sortable style={{ minWidth: "16rem" }} > <Column field="price" header="Price" body={priceBodyTemplate} sortable style={{ minWidth: "8rem" }} > <Column field="itemType" header="itemType" sortable style={{ minWidth: "10rem" }} > <Column body={actionBodyTemplate} exportable={false} style={{ minWidth: "12rem" }} > when the onsort function is enable it will return only one order value "1" on every click
No response
10.6.5
17.x
TypeScript
Create React App (CRA)
chrome
the expected beahvoir would be orderby "1" and on another click the orderBy "0" for des
The text was updated successfully, but these errors were encountered:
Can you provide a stackblitz link please ?
Sorry, something went wrong.
Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days.
No branches or pull requests
Describe the bug
<DataTable ref={dt} value={products} selection={selectedProducts} onSelectionChange={(e) => { if (Array.isArray(e.value)) { setSelectedProducts(e.value); } }} sortMode="multiple" dataKey="_id" lazy onSort={(e) => console.log(e)} onPage={onPageChange} first={first} paginator totalRecords={page?.totalDocs} rows={10} rowsPerPageOptions={[5, 10, 25]} paginatorTemplate=" PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown" currentPageReportTemplate="Showing {totalRecords} products" globalFilter={globalFilter} header={header} selectionMode="multiple" > <Column field="shortCode" header="ShortCode" style={{ minWidth: "12rem" }} > <Column field="name" header="Name" sortable style={{ minWidth: "16rem" }} > <Column field="price" header="Price" body={priceBodyTemplate} sortable style={{ minWidth: "8rem" }} > <Column field="itemType" header="itemType" sortable style={{ minWidth: "10rem" }} > <Column body={actionBodyTemplate} exportable={false} style={{ minWidth: "12rem" }} >
when the onsort function is enable it will return only one order value "1" on every click
Reproducer
No response
PrimeReact version
10.6.5
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
chrome
Steps to reproduce the behavior
No response
Expected behavior
the expected beahvoir would be orderby "1" and on another click the orderBy "0" for des
The text was updated successfully, but these errors were encountered: