Skip to content

Commit

Permalink
Merge pull request #1075 from MonsterUncle/patch-1
Browse files Browse the repository at this point in the history
Update element.js
  • Loading branch information
sentsim committed Jul 17, 2022
2 parents 72d74de + fb2d5d4 commit 0ce911a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ layui.define('jquery', function(exports){
,filter = parents.attr('lay-filter');

if(li.hasClass(THIS)){
if(li.next()[0]){
if (li.next()[0] && li.next()[0].tagName === 'LI'){
call.tabClick.call(li.next()[0], null, index + 1);
} else if(li.prev()[0]){
} else if (li.prev()[0] && li.prev()[0].tagName === 'LI'){
call.tabClick.call(li.prev()[0], null, index - 1);
}
}
Expand Down

0 comments on commit 0ce911a

Please sign in to comment.