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

fix: children elements in nested lists drag parent elements. #127

Merged
merged 4 commits into from
Jan 24, 2017

Conversation

DeadHeadRussell
Copy link
Contributor

Here is a pull request for issue #112

This commit has both a fix, and also a new story for nested lists as a test case.

Copy link
Contributor

@tomasztomys tomasztomys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use tabs indents

<Handle/>
<span>Category {props.value}</span>
</div>
<ListWrapper component={SortableList} className={style.categoryList} items={getItems(5, 59)} shouldUseDragHandle={true} helperClass={style.stylizedHelper} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong indent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

@@ -143,6 +143,10 @@ export default function sortableContainer(WrappedComponent, config = {withRef: f
}
};

nodeIsChild = node => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong indent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

@clauderic clauderic merged commit cfad546 into clauderic:master Jan 24, 2017
@clauderic
Copy link
Owner

clauderic commented Jan 24, 2017

Hey @DeadHeadRussell, thank you so much for taking the time to submit this, and for even going the extra mile and writing a storybook demo for it ❤️ Should be released shortly, stay tuned!

Edit: Just released 0.4.10 with this fix, thanks again!

@DeadHeadRussell
Copy link
Contributor Author

No problem. Thanks for merging it so quickly!

DimitarNestorov pushed a commit to codemotionapps/react-sortable-hoc that referenced this pull request Feb 4, 2019
fix: children elements in nested lists drag parent elements.
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

Successfully merging this pull request may close these issues.

3 participants