Skip to content

Commit 43b1691

Browse files
author
Lukas Oppermann
authored
fix (#410)
1 parent 43629c3 commit 43b1691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html5sortable.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ export default function sortable (sortableElements, options: object|string|undef
551551
return
552552
}
553553
const options = _data(sortableElement, 'opts')
554-
if (parseInt(options.maxItems) && _filter(sortableElement.children, _data(sortableElement, 'items')).length >= parseInt(options.maxItems)) {
554+
if (parseInt(options.maxItems) && _filter(sortableElement.children, _data(sortableElement, 'items')).length >= parseInt(options.maxItems) && dragging.parentElement !== sortableElement) {
555555
return
556556
}
557557
e.preventDefault()

0 commit comments

Comments
 (0)