Skip to content

Commit

Permalink
SortableJS#902: * clearSelection
Browse files Browse the repository at this point in the history
  • Loading branch information
RubaXa committed Jul 6, 2016
2 parents c85767e + 5c7a897 commit a4d5aa1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,11 @@
}

try {
if (document.selection) {
document.selection.empty();
if (document.selection) {
// Timeout neccessary for IE9
setTimeout(function () {
document.selection.empty();
});
} else {
window.getSelection().removeAllRanges();
}
Expand Down
Loading

0 comments on commit a4d5aa1

Please sign in to comment.