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

Warning: Unknown prop xsOffset on <div> tag. #5

Open
ckuijjer opened this issue Sep 22, 2016 · 5 comments
Open

Warning: Unknown prop xsOffset on <div> tag. #5

ckuijjer opened this issue Sep 22, 2016 · 5 comments

Comments

@ckuijjer
Copy link

Using the last version 0.7.0 of react-flexgrid shows the following warnings in the console.

Warning: Unknown prop `xsOffset` on <div> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in div (created by Col)
    in Col (created by WhatsYourType)
    in div (created by Row)
    in Row (created by WhatsYourType)
    in div (created by Grid)
    in Grid (created by WhatsYourType)

This already seems solved in https://github.com/nkt/react-flexgrid/blob/master/src/Col.js#L45 . However I don't see the passingProps in the Col.js installed by npm. Probably it can be solved by bumping the version and publishing it.

@caiokf-zenefits
Copy link

I am seeing the same issue with other Col props, xs, md and so on

@nkt
Copy link
Owner

nkt commented Oct 1, 2016

Sorry for so long delay. I've published new release

@caiokf-zenefits
Copy link

Thank you. I updated to 0.8.0, but I am still seeing:

warning.js:39 Warning: Unknown props `xs`, `md` on <div> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop
    in div (created by Col)
    in Col (created by ResourceList)
    in div (created by Row)
    in Row (created by ResourceList)

My code looks like:

<Grid>
  <Row>
    <Col xs={1} md={4}>
      ...
    </Col>
  </Row>
</Grid>

I can provide other details if needed.

@ckuijjer
Copy link
Author

ckuijjer commented Oct 1, 2016

It's fixed for me in 0.8.0, thanks for the update! 🎉

P.S. @caiokf-zenefits In my case I initially also thought it wasn't solved. Restarting the dev server / webpack solved it for me.

@caiokf-zenefits
Copy link

Aha! Sorry i missed that. It fixed for me too. Thank you.

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

3 participants