362 questions
Advice
1
vote
0
replies
26
views
A Chips component with autocomplete similar to the Mentions component
I have a requirement to allow a user to look up email addresses within our system. The requirement is that when they put in three characters they are given suggestions for addresses that match those ...
0
votes
0
answers
31
views
Weird scrolling behaviour in vite-pwa app on desktop
I'm experiencing strange scrolling behavior in my vite-pwa on the desktop.
The problem is as follows:
I have the component BulkDeltePanel.tsx, which contains the following:
<Sidebar visible={props....
0
votes
1
answer
195
views
I'm using the primereact library, specifically a dropdown. How can I modify it's height?
I'm trying to modify a primereact theme for the dropdowns, but it doesn't seem to change a bit...
Anytime that I need to modify any component brought by an external library I'm having this kind of ...
0
votes
1
answer
71
views
Virtualization doesn't work in PrimeReact's ListBox
Versions:
"primereact": "^10.9.7"
"react": "^18.2.0"
I've added a component like this:
<ListBox
filter
multiple
value={myValue}
options={...
0
votes
0
answers
50
views
How to get auth-header to work with PrimeReact FileUpload?
I use Clerk as my authentication provider and Primereact as the UI library in my React app.
Locally, this file upload works perfectly:
<FileUpload onBeforeSend={BeforeSend} chooseLabel={t("...
0
votes
0
answers
39
views
PrimeReact Editor adds unnecessary space while change the content
We have created SPFx React solution. We have used PrimeReact library in that project.
We have used the Editor component from PrimeReact library.
The editor works with initial data which passed on ...
1
vote
0
answers
166
views
Header alignment with sort/filter icons in PrimeReact DataTable
I have a PrimeReact DataTable with multiple columns.
Each column has a text header, optionally with sort and filter options.
Alignment of the columns can differ, and I would like the alignment of the ...
0
votes
0
answers
39
views
How can I dynamically inject theme colors from JSON into PrimeReact's CSS/SCSS themes?
I'm building a React project with TypeScript that will be sold to multiple clients. To accommodate dynamic theming, all configuration—including theme colors, assets and texts—is fetched from an API ...
1
vote
0
answers
40
views
Primereact sorting a Date value as string and not as Date, custom sort is ignored
I have a date in my data which is being treated as string by primereact. To overcome I added a format function to formate date string to Date type. However, primereact still treat the values as string....
0
votes
0
answers
65
views
How to add Image and text in data label and legend in pie chart?
I have created SPFx React project and integrate chart js library in that projecct
I have used "chart.js": "^3.3.2" version.
I need to add an image/icon in data labels and legends.
...
1
vote
1
answer
139
views
How can I customize the default sorting behavior in a PrimeReact DataTable?
I want to enable sorting with null values in PrimeReact. Currently, null values are always placed at the bottom by default, similar to Excel's behavior.
Previously, sorting was working as shown in ...
1
vote
2
answers
106
views
How can I customize the sort icon color for specific columns in a PrimeReact table with multi-sort enabled?
I am using a PrimeReact table with multi-sort functionality, and I need to change the color of the sort icons for specific columns. Specifically, I want the sort icon in the Code column to be red and ...
1
vote
1
answer
140
views
How do we add labels like the image?
I have created the SPFx React project.
I have implemented a bar chart using PrimeReact charts.
To my knowledge, PrimeReact uses the ChartJs library on the back end.
I need to add a label and value ...
1
vote
0
answers
49
views
PrimeReact checkbox not focussing using Tailwind
Context
We're using ReactPrime as UI lib for our NextJS, on top of which we apply our custom styles using Tailwind.
import { CustomDesignSystem } from "@/app/ui/design-system"
...
...
3
votes
1
answer
141
views
React component Extends generic prop type using typescript
I am trying to extend existing props from Primereact DataTable component but I can't understand why I see this error:
Generic type 'DataTableProps' requires 1 type argument(s)
I was supposed to ...
5
votes
2
answers
6k
views
dialog causes error Accessing element.ref was removed in React 19
I'm using primereact with nextjs but i get error Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.. so i guess ...
0
votes
1
answer
577
views
React > PrimeReact > DataTable > Date Filter - Strip Timezone?
I'm using the PrimeReact DataTable, and am trying to filter on a date column. I'm using PrimeReact's built-in UI but am doing custom stuff after the filter is set. This all works fine, except I'm ...
0
votes
1
answer
296
views
How to Enable Horizontal Scroll and Prevent Overflow?
I am working on a React project using PrimeReact's DataTable component, but I'm struggling to contain the table within its parent container. When the table's content exceeds the available width, it ...
0
votes
1
answer
250
views
UI elements are displayed shortly with a broken layout before shifting to their intended positions
I am building an application based on React, Next.js and Primereact.
I use the app router of Next.js.
When the page is loaded, the UI elements are displayed shortly with a broken layout before ...
0
votes
1
answer
286
views
How to style the Prime-React's component "FloatLabel"?
In the LoginPage of my website, the input fields use the FloatLabel component:
initial state image.
When the label floats on top, it blends with the background:
final state image.
I'm trying to change ...
-1
votes
1
answer
242
views
Problems CSP with Spring Boot and PrimeReact
we have an single-page-application, that uses Spring Boot as backend and React as frontend. We use PrimeReact as our component library for React.
We are packaging the React Application as a static ...
0
votes
1
answer
209
views
Render a link inside PrimeReact accordion header
I'm working with the PrimeReact library, specifically their <Accordion> component (see https://primereact.org/accordion/ ). PrimeReact provides an <AccordionTab> that should be rendered as ...
0
votes
1
answer
411
views
Tailwind base remove border and padding
I'm currently working on a project using the Calendar component from PrimeReact, and I've encountered an issue where the border and padding seem to be missing. I have a themes.css file in my public ...
0
votes
1
answer
106
views
Formik not submit
Formik not submit the form when click at submit button. The handleSubmit() isn't being called, nether putting a console.log() or alert() directly at onSubmit.
I am using PrimeReact 10.8.3, React 18.3....
1
vote
0
answers
127
views
How to Thoroughly Test PrimeReact AutoComplete Component with API Handling and Virtual Scrolling in React?
I’m working on a project using PrimeReact’s AutoComplete component to search customers by different criteria (e.g., name, mobile number, etc.). The search suggestions are fetched from an API, and the ...
1
vote
1
answer
149
views
How can I change the order of buttons in PrimeReact OrderList control?
I am using PrimeReact OrderList component. You can review the component from the documentation. There are controls buttons here. They are used to move items up and down. I want the two buttons to be ...
0
votes
1
answer
171
views
how to pass filterMatchMode="contains" directly to Column component?
I'm beginning with React and PrimeReact.
In docs https://primereact.org/datatable/#basic_filter they say that to set up options for filters you need to create one object
const [filters, setFilters] = ...
0
votes
2
answers
939
views
Highlight Days in PrimeReact Calendar Based on Range Selection with Hover
I am working on a React TypeScript application using PrimeReact (version 10.8.3), specifically the Calendar component with Range selection mode. I created a separate component for the Calendar and ...
2
votes
2
answers
690
views
Prime React Dropdown filter is not working properly
I am using primereact/dropdown to render my locations list in which user can select the in the list but I am also using the filter method in the dropdown to make the user also have the search ...
0
votes
1
answer
252
views
Filter doesn't work when dynamically added column on primereact DataTable
I'm trying implement dynamic DataTable from PrimeReact, but added new column doesn't have filter data.
On example, there is dropdown and you can add more columns to table, but added column filter ...
2
votes
1
answer
1k
views
Issue with The engine "node" is incompatible with this module
I have been trying to find a fix for this problem
error @primer/[email protected]: The engine "node" is incompatible with this module. Expected version ">=18.18.0 <18.19.0". ...
1
vote
0
answers
218
views
Primereact Menubar Displays Mobile Version on Refresh Before Switching to Desktop Version
I am using React with PrimeReact for my project. I've noticed an issue with the Menubar component where it briefly displays in the mobile version when I refresh the page before switching to the ...
1
vote
1
answer
78
views
What is the method using PrimeReact for determining which row an expandedRow button is within?
Using PrimeReact's DataTable: https://primereact.org/datatable/
Using the expandedRows functionality available in the component, you can retrieve the the row within the expansion (or in the main table)...
0
votes
3
answers
314
views
Date Sorting with Prime React
I'm having issues sorting a datatable with prime react on the Date column.
Here is my code
<Column
field="Date"
header="Date"
sortable={true}
body={(rowData: any)...
2
votes
1
answer
197
views
PrimeReact AccordionTab Not Rendering When Wrapped in Custom Component
I'm facing an issue where my custom FilterAccordionTab component, which extends PrimeReact's (V8) AccordionTab, is not rendering its content. However, when I directly use PrimeReact's AccordionTab ...
1
vote
1
answer
453
views
radiobutton appears twice primereact datatable reactjs
Working on primereact datatable checkboxes and radiobuttons, in few environments we deployed the applciation, we can see the radio button or checkboxes appears twice just like below:
I can see some ...
1
vote
2
answers
67
views
How to reference .this from within an instance of react interface?
I'm using a primereact component, whose props include a function, and I want to use one of the other props in this function. The overall scheme of things looks like this:
interface Props {
label?: ...
0
votes
0
answers
346
views
Unable to set column width dynamatically in PrimeReact data-table
I have created SPFx with React solution. I have used "primereact": "^9.4.0" version.
I need to set the column width dynamically in the Prime React data-table column.
I have added ...
0
votes
1
answer
125
views
Objects are not valid as a React child (PrimeReact)
I am having a array of data which is having multiple objects. I want to print the values inside the table using PrimeReact Table.
But when I am passing the data inside value field of DataTable I am ...
2
votes
2
answers
790
views
How can I make newly added rows instantly editable?
I'm using prime react table to render dynamic data in react. I built my component with the help of the datatable docs.
When I click the add row button, I would like that the new added row to be ...
0
votes
0
answers
158
views
Using Material Design 3 (You) theme with PrimeReact?
now I use PrimeReact in my Next.js project and use theme of stylish of this PrimeReact components, as Lara, MD, MD-compat. But only it themes is preseted in PrimeReact. PrimeReact don`t have theme for ...
1
vote
0
answers
214
views
How can I mark a checkbox option from TreeSelect component with the selection of another option from the same dropdown?
everyone!
I'm using the TreeSelect component with checkboxes from PrimeReact 7.2.1. I want to implement the following behaviour: When I click on option Cost of Goods Sold to External Customer (see ...
0
votes
2
answers
496
views
Change styling navbar from PrimeReact
I want to change the background color of the navbar that was created using PrimeReact. But I do not know where do I put the CSS styling. I try many time but none of them work. I only want to change ...
0
votes
3
answers
1k
views
Primereact password component width doesn't fit container
I am new to React and I started working on a Sign up page, I am trying to make the password fit the container but it doesn't seem to make a difference no matter which method I try, Is there even a way ...
1
vote
1
answer
234
views
Getting error when selecting autofill value in prime react input number component
I am getting an error when i try to select a autofill value
I am using prime react inputnumber component
enter image description here
when i debug ,there is no value in event.Even if to turn off ...
2
votes
1
answer
799
views
I'm not able to render data in the prime react editor
b static data also isn't rendering in the PrimeReact Editor.There is data in the the backend the data is coming in fine but it doesn't show up on the editor
I was trying to render the data to get to ...
2
votes
0
answers
229
views
Prime React Menubar not behaving correctly on small screen
Im trying to use MenuBar component from Prime React library, but for some reason, the menubar button that triggers menu bar on small screen does not show, and menubar is showing automatically. this ...
0
votes
1
answer
461
views
Primereact Datatable Language
I have a project that I developed using primereact and I use primereact/datatable in this project. Things like filtering operations and buttons in this table are in English, which is fine for me, but ...
0
votes
2
answers
210
views
ReactJS Returning props.value.map is not a function when parsing a json file
I am trying to teach myself ReactJS using PrimeReact. i am making a simple application to track crypto holdings in a wallet i own. i have this code to create a table with base data from a json file:
...
0
votes
1
answer
72
views
Cannot pass template component as a property in NextJS
Here is the code:
// page.tsx
function buttonsTemplate(book: Book) {
return (
<div>
<Button>Remove</Button>
<Button>Modify</Button>
</div>
)...