react-flexgrid icon indicating copy to clipboard operation
react-flexgrid copied to clipboard

Warning: Unknown prop `xsOffset` on <div> tag.

Open ckuijjer opened this issue 7 years ago • 5 comments

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.

ckuijjer avatar Sep 22 '16 07:09 ckuijjer

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

caiokf-zenefits avatar Sep 30 '16 19:09 caiokf-zenefits

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

nkt avatar Oct 01 '16 00:10 nkt

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.

caiokf-zenefits avatar Oct 01 '16 01:10 caiokf-zenefits

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.

ckuijjer avatar Oct 01 '16 17:10 ckuijjer

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

caiokf-zenefits avatar Oct 02 '16 15:10 caiokf-zenefits