Skip to content

Commit

Permalink
Merge pull request #53 from bradwestfall/patch-1
Browse files Browse the repository at this point in the history
Update README.md to include a Common Pitfalls section
  • Loading branch information
Claudéric Demers authored Sep 14, 2016
2 parents 5ceb45d + 2b43c5d commit 2e96f2b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ Asking for help
----------------
Please do not use the issue tracker for personal support requests. Instead, use [Gitter](https://gitter.im/clauderic/react-sortable-hoc) or StackOverflow.

Common Pitfalls
---------------

### CSS messing up on drag?

Upon sorting, `react-sortable-hoc` creates a clone of the element you are sorting (the _sortable-helper_) and appends it to the end of the `<body>` tag. The original element will still be in-place to preserve its position in the DOM until the end of the drag (with inline-styling to make it invisible). If the _sortable-helper_ gets messed up from a CSS standpoint, consider that maybe your selectors to the draggable item are dependent on a parent element which isn't present anymore (again, since the _sortable-helper_ is at the end of the `<body>`).

Contributions
------------
Yes please! Feature requests / pull requests are welcome.
Expand Down

0 comments on commit 2e96f2b

Please sign in to comment.