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

fix: avoid error on typing colon #6056

Merged
merged 5 commits into from
Sep 13, 2023
Merged

fix: avoid error on typing colon #6056

merged 5 commits into from
Sep 13, 2023

Conversation

R290
Copy link
Contributor

@R290 R290 commented Aug 24, 2023

Closes #6007
Closes #6009
Closes #6011
Closes #6013
Closes #6017
Closes #6031
Closes #6034
Closes #6037
Closes #6038
Closes #6039
Closes #6044
Closes #6048
Closes #6051
Closes #6052
Closes #6053
Closes #6055
I might have missed a few issues describing the same error.

Briefly describe your proposed changes:

Replace FunctionComponent by Component in the TemplateDrawer to restore compatibility with react-onclickoutside

What was the problem?

Error when typing a colon: Cannot read properties of undefined (reading 'getInstance')

What was the solution?

Replacing FunctionComponent by Component, setting properties and adding a render function.

  • CHANGELOG.md updated with a link to the PR (not the Issue)
  • Well-formatted commit messages
  • Rebased/mergeable
  • Tests pass
  • Any changes to etc/Dockerfile_build have been pushed to DockerHub, and the changes have been added to .circleci/config.yml
  • swagger.json updated (if modified Go structs or API)
  • Sign CLA (if not already signed)

@R290
Copy link
Contributor Author

R290 commented Aug 30, 2023

@jdstrand @jeffreyssmith2nd @ivankudibal @bnpfeife does anybody have the opportunity to review?

Copy link
Contributor

@ivankudibal ivankudibal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello R290, thanks a lot, after a discussion with @Sciator, would you add a comment that it must be a class component if someone wants to refactor it in the future so that the error does not appear again when the type system does not check it...

@Sciator
Copy link

Sciator commented Aug 31, 2023

It would be good to add @types/react-onclickoutside to devDependencies also.

@R290
Copy link
Contributor Author

R290 commented Aug 31, 2023

Thanks to both of you for your review. I hope we can merge and release soon, the colon error is causing quite a lot of issues being created.

@R290
Copy link
Contributor Author

R290 commented Sep 7, 2023

Another issue has popped up (#6058), time to merge this? @ivankudibal @Sciator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment