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

"as" property conflict #92

Open
artalar opened this issue Nov 2, 2019 · 0 comments
Open

"as" property conflict #92

artalar opened this issue Nov 2, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@artalar
Copy link
Collaborator

artalar commented Nov 2, 2019

as property must be ignored when it set in a class / function components.

Error (TypeError: Cannot read property 'startsWith' of undefined):

<MenuItem {...menu} as={ThemeSettings} />

example

Fine:

<MenuItem {...menu} {...{ as: ThemeSettings }} />
@lttb lttb added the bug Something isn't working label Dec 15, 2020
@lttb lttb self-assigned this Dec 15, 2020
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