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

Error when rendering the <SchemaForm /> inside of a Material UI <Dialog> #17

Closed
aramkoukia opened this issue Apr 27, 2019 · 1 comment
Closed

Comments

@aramkoukia
Copy link

I get the following error when rendering the inside of a Material UI

Uncaught TypeError: Cannot read property 'anchorEl' of null
    at RawConfiguredField.shouldComponentUpdate (ConfiguredField.js:74)
    at checkShouldComponentUpdate (react-dom.development.js:11668)
    at updateClassInstance (react-dom.development.js:12077)
    at updateClassComponent (react-dom.development.js:13499)
    at beginWork (react-dom.development.js:14090)
    at performUnitOfWork (react-dom.development.js:16416)
    at workLoop (react-dom.development.js:16454)
    at renderRoot (react-dom.development.js:16533)
    at performWorkOnRoot (react-dom.development.js:17387)
    at performWork (react-dom.development.js:17295)
    at performSyncWork (react-dom.development.js:17267)
    at interactiveUpdates$1 (react-dom.development.js:17558)
    at interactiveUpdates (react-dom.development.js:2208)
    at dispatchInteractiveEvent (react-dom.development.js:4913)

And I see a blank page when this error happens...

Here is how the code looks like:

        <Dialog
          open={openCustomerDialog}
         >
          <DialogContent>
                <SchemaForm
                  classes={styles}
                  schema={schema}
                  uiSchema={uiSchema}
                  formData={initialFormData}
                  onSubmit={this.onSubmit}
                />
          </DialogContent>
        </Dialog>
@TwoAbove
Copy link
Owner

Hey! Sorry for not answering sooner. Have you tried wrapping it in a <div>?

p.s. This might change in v2 where I'll re-write the project (re rjsf-team/react-jsonschema-form#1222)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants