You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the MeterGroup component, there are ‘CustomRenderProps’ property. In the documentation, they are called :
There is no problem with ‘values’ but the others are not correct and do not work.
Here is an example of a console.log() in a ‘start’ method which takes an object of type CustomRenderProps as a parameter. The console.log() of this type return this (see image below).
You can see the ‘totalPercent’ attribute does not take an ‘L’ (l upper) and the second attribute is written as ‘precentages’ instead of ‘percentages’.
It is not possible to access the ‘totalPercent’ and ‘precentages’ attributes because they have different names to those in the documentation and the attributes 'totaLPercent' and 'percentages' return nothing.
Reproducer
No response
PrimeReact version
10.6.6
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
Edge
Steps to reproduce the behavior
No response
Expected behavior
You would have to change the name of the ‘customRenderProps’ attributes to be able to access them.
The text was updated successfully, but these errors were encountered:
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
May 28, 2024
Describe the bug
In the MeterGroup component, there are ‘CustomRenderProps’ property. In the documentation, they are called :
There is no problem with ‘values’ but the others are not correct and do not work.
Here is an example of a console.log() in a ‘start’ method which takes an object of type CustomRenderProps as a parameter. The console.log() of this type return this (see image below).
You can see the ‘totalPercent’ attribute does not take an ‘L’ (l upper) and the second attribute is written as ‘precentages’ instead of ‘percentages’.
It is not possible to access the ‘totalPercent’ and ‘precentages’ attributes because they have different names to those in the documentation and the attributes 'totaLPercent' and 'percentages' return nothing.
Reproducer
No response
PrimeReact version
10.6.6
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
Edge
Steps to reproduce the behavior
No response
Expected behavior
You would have to change the name of the ‘customRenderProps’ attributes to be able to access them.
The text was updated successfully, but these errors were encountered: