[Dialog] Typing error when trying to pass component
to PaperProps
of Dialog
#32392
Closed
2 tasks done
Labels
bug 🐛
Something doesn't work
component: dialog
This is the name of the generic UI component, not the React module!
component: Paper
This is the name of the generic UI component, not the React module!
typescript
Duplicates
Latest version
Current behavior 😯
You can't set
component
prop inPaperProps
without TS errors even though the prop exists inPaper
component.Expected behavior 🤔
You should be able to set all
Paper
component props inPaperProps
prop ofDialog
.Steps to reproduce 🕹
Steps:
Write the following code and see the TS errors on the latter.
Context 🔦
I am trying to use the
Dialog
as a form by changingPaper
component into form. I cannot just wrap the wholeDialog
withform
because I have portal enabled for theDialog
.Your environment 🌎
`tsconfig.json`
``` { "extends": "../tsconfig.base.json", "compilerOptions": { "rootDir": "..", "baseUrl": ".", "composite": false, "declaration": false, "declarationMap": false, "sourceMap": false, } } ```The text was updated successfully, but these errors were encountered: