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

[BUG] Incompatible with Chakra UI Pro theme #316

Open
2 of 6 tasks
chriskuech opened this issue May 11, 2024 · 3 comments
Open
2 of 6 tasks

[BUG] Incompatible with Chakra UI Pro theme #316

chriskuech opened this issue May 11, 2024 · 3 comments
Assignees
Labels
Bug Something isn't working

Comments

@chriskuech
Copy link

Description

When I installed Chakra UI Pro theme and import chakra-react-select, then the app crashes with the following stack traces:
image

chakra-react-select Version

4.7.6

Link to Reproduction

No response

TypeScript?

  • Yes I use TypeScript

Steps to reproduce

  1. Install and configure Chakra UI Pro theme
  2. Instantiate a Select from chakra-react-select

Operating System

  • macOS
  • Windows
  • Linux
  • iOS/iPadOS
  • Android

Additional Information

No response

@chriskuech chriskuech added the Bug Something isn't working label May 11, 2024
@csandman
Copy link
Owner

Can you give me a code example of how the app is set up? I've never used the Chakra pro theme, so it's hard for me to diagnose this without an example.

@chriskuech
Copy link
Author

Ya its just this guide. It's basically just copying in a chakra theme file.

@csandman
Copy link
Owner

Ok, actually looking at the part of the error Cannot read properties of undefined (reading '500'), this makes me think this package is not able to find one of the basic color palettes for red or blue that the normal theme has. Are the base color scheme colors not available in the pro theme color palette?

If not, you'd have to pass the selectedOptionColorScheme prop with some color palette the theme actually has. I believe this should fix the issue but let me know if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants