Skip to content

Commit

Permalink
Fixes #22
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobius1 committed Sep 8, 2020
1 parent 6a3a01c commit 4e471df
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
4 changes: 3 additions & 1 deletion selectable.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,11 @@
}

classList.add(this.container, o.classes.container);
this.container._selectable = this;

if (old) {
classList.remove(old, o.classes.container);
delete old._selectable
}

this.bodyContainer = this.container === document.body;
Expand Down Expand Up @@ -977,7 +979,7 @@
count = this.getSelectedItems().length,
max = o.maxSelectable;

// max items reached and toggle is enabled or the cmd / shift key is down
// max items reached
if (!!max && count >= max && (cmd || shift)) {
return this._maxReached();
}
Expand Down
22 changes: 11 additions & 11 deletions selectable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e471df

Please sign in to comment.