-
Notifications
You must be signed in to change notification settings - Fork 983
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
Conversation
There was a problem hiding this 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} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong indent
There was a problem hiding this comment.
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 => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong indent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
9f0dc10
to
3549bbb
Compare
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 |
No problem. Thanks for merging it so quickly! |
fix: children elements in nested lists drag parent elements.
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.