Skip to content
New issue

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

MeterGroup: CustomRenderProps don't work #6696

Closed
paulBrdInfotel opened this issue May 28, 2024 · 0 comments · Fixed by #6699
Closed

MeterGroup: CustomRenderProps don't work #6696

paulBrdInfotel opened this issue May 28, 2024 · 0 comments · Fixed by #6699
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@paulBrdInfotel
Copy link

Describe the bug

In the MeterGroup component, there are ‘CustomRenderProps’ property. In the documentation, they are called :
image

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).

image

You can see the ‘totalPercent’ attribute does not take an ‘L’ (l upper) and the second attribute is written as ‘precentages’ instead of ‘percentages’.

image
image

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.

@paulBrdInfotel paulBrdInfotel added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 28, 2024
@melloware 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
@melloware melloware added this to the 10.7.0 milestone May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants