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 React does not recognize the elementAttributes prop on a DOM element when rending Select component #283

Open
chrismanderson opened this issue Nov 27, 2018 · 1 comment

Comments

@chrismanderson
Copy link

Getting in browser console

Warning: React does not recognize the `elementAttributes` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `elementattributes` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
    in div (created by DropdownMenu)
    in div (created by DropdownMenu)
    in div (created by DropdownMenu)
    in DropdownMenu (created by Select)
    in div (created by Select)
    in div (created by Select)
    in Select (created by FormComponent)
    in FormComponent (created by withTheme(FormComponent))
    in withTheme(FormComponent) (created by StateHolder)
    in div (created by StateHolder)
    in div (created by StateHolder)
    in form (created by Form)
    in Form (created by StateHolder)
    in StateHolder (created by ReactExample)
    in div (created by StyleRoot)
    in StyleRoot (created by Wrapper)
    in Wrapper (created by ReactExample)
    in ReactExample

When rendering a Select component. Got this in my own app, then could recreate by cloning the repo and starting the styleguide via yarn styleguide.

@utb2017
Copy link

utb2017 commented Sep 14, 2019

Go to the snacks.js file, (can be done by highlighting the "ic-snacks" import and hitting f12 in visual studio). Find all the "elementAttributes" and replace them with "elementattributes". Kills the error and the component still works as far as I can tell.

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