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

Unknown prop sortHandle on <div> tag #79

Open
ghost opened this issue Feb 1, 2017 · 1 comment
Open

Unknown prop sortHandle on <div> tag #79

ghost opened this issue Feb 1, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 1, 2017

screen shot 2017-02-01 at 14 51 50

It guess that this warning is caused by React not allowing unknown props, but anything I can do to fix this?

@limiremi
Copy link

limiremi commented Mar 24, 2017

Try this

import React, { PropTypes } from 'react'
import { SortableItemMixin, SortableContainer } from 'react-anything-sortable';

var SortableItem = React.createClass({
  mixins: [SortableItemMixin],

  render: function(){
    return this.renderWithSortable(
        <SortableContainer {...this.props}>
            <div>your item</div>
       </SortableContainer>
    );
  }
});

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

1 participant