Skip to content

Commit

Permalink
Fix for adding disable class and attribute on lg-prev button
Browse files Browse the repository at this point in the history
  • Loading branch information
gdimitrov-propy committed Nov 23, 2018
1 parent 9669c18 commit 3dd2980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/lightgallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -1057,8 +1057,8 @@ Plugin.prototype.arrowDisable = function(index) {
prev.removeAttribute('disabled');
utils.removeClass(prev, 'disabled');
} else {
next.setAttribute('disabled', 'disabled');
utils.addClass(next, 'disabled');
prev.setAttribute('disabled', 'disabled');
utils.addClass(prev, 'disabled');
}
}
};
Expand Down

0 comments on commit 3dd2980

Please sign in to comment.