-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ConfirmDialog: 'group' does not exist in type 'ConfirmDialogProps' #6855
ConfirmDialog: 'group' does not exist in type 'ConfirmDialogProps' #6855
Comments
@abdullahnazzal what makes you think there is a |
Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days. |
Sorry for posting on a closed issue, I had the same problem that @abdullahnazzal presented and I'd like to point out one thing, which is probably the real problem here. @melloware you are correctly pointing out that the props section doesn't list the "group" property, but if you have a look at the documentation it is litterally showing examples of the "group" prop everywhere:
I have one question: is a documentation error or is it a future feature not implemented yet/breaking change from past versions? Since someone put lot of effort to write that documentation listing the "group" prop, it is either a bug/future feature or it is a copy-paste went wrong from the documentation of another primeface related project. Either way, the documentation should be fixed, or it should be implemented/restored the support to the "group" prop. If it is a bug in the documentation of ConfirmDialog, I'd suggest to go through the examples very thoroughly as it seems the examples in the "feature" section are not consistent at all with the list of supported props in the "prop" section: not only they are showing usage of "group", but they also show usage of the "trigger" prop (which is not listed in the "prop" section). Also, the documentation fails in explaining what is the structure of the "configuration object for customization" passed to the "confirmDialog" method, and what are the differences with the list of props the ConfirmDialog components supports. |
let me look through the commits. I see what you are saying now. I will reopen and investigate. |
PR submitted the Typescript was missing! |
Describe the bug
Issue 1:
Object literal may only specify known properties, and 'group' does not exist in type 'ConfirmDialogProps'.
Issue 2:
No overload matches this call.
Overload 1 of 2, '(props: ConfirmDialogProps): ConfirmDialog', gave the following error.
Type '{ group: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'.
Property 'group' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'.
Overload 2 of 2, '(props: ConfirmDialogProps, context: any): ConfirmDialog', gave the following error.
Type '{ group: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'.
Property 'group' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'.
Reproducer
No response
PrimeReact version
^10.6.5
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: