Skip to content

Commit 1283230

Browse files
committed
always give ctx if includeCtx
1 parent bb3a562 commit 1283230

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sortable.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1702,9 +1702,9 @@
17021702
selector != null &&
17031703
(
17041704
selector[0] === '>' && el.parentNode === ctx && _matches(el, selector.substring(1)) ||
1705-
_matches(el, selector) ||
1706-
(includeCTX && el === ctx)
1707-
)
1705+
_matches(el, selector)
1706+
) ||
1707+
includeCTX && el === ctx
17081708
) {
17091709
return el;
17101710
}

0 commit comments

Comments
 (0)