Skip to content

Commit

Permalink
fix button parent selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicals authored and ornicar committed Oct 19, 2018
1 parent 1b56c33 commit 143e98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/site/src/infinite-scroll.js
Expand Up @@ -30,7 +30,7 @@ lichess.loadInfiniteScroll = function(el) {

var $moreButtonParent = $scroller.parent();
// prevent adding buttons as child of elements where buttons are not allowed
if ($moreButton.is('table, ul, ol, dl')) {
if ($moreButtonParent.is('table, ul, ol, dl')) {
$moreButtonParent = $moreButtonParent.parent();
}
$moreButtonParent.after($moreButton);
Expand Down

0 comments on commit 143e98d

Please sign in to comment.