Skip to content

Commit 5b8fda8

Browse files
committed
[refactor] link tab index
1 parent b6700fd commit 5b8fda8

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

‎js/control.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,10 +1809,10 @@ var control = (function(){
18091809
var_edit=function(){
18101810
if(state.get().link.edit){
18111811
helper.addClass(html,"is-link-edit");
1812-
link.tabIndex();
1812+
link.render.tabIndex();
18131813
}else{
18141814
helper.removeClass(html,"is-link-edit");
1815-
link.tabIndex();
1815+
link.render.tabIndex();
18161816
};
18171817
};
18181818
var_date=function(){

‎js/link.js‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var link = (function(){
6161
data.save();
6262
clear();
6363
render.link();
64-
tabIndex();
64+
render.tabIndex();
6565
control.dependents();
6666
control.render();
6767
resetStagedBookmarkData();
@@ -114,7 +114,7 @@ var link = (function(){
114114
data.save();
115115
clear();
116116
render.link();
117-
tabIndex();
117+
render.tabIndex();
118118
_returnToPreviousFocusLink();
119119
resetStagedBookmarkData();
120120
},
@@ -514,6 +514,9 @@ var link = (function(){
514514
link: function(){
515515
_link();
516516
},
517+
tabIndex: function(){
518+
_tabIndex();
519+
},
517520
items: function(){
518521
_items();
519522
}
@@ -592,7 +595,7 @@ var link = (function(){
592595
html.style.setProperty("--link-items-width",state.get().link.items.width+"%");
593596
};
594597

595-
vartabIndex=function(){
598+
var_tabIndex=function(){
596599
varallLinkControlItem=helper.eA(".link-control-item");
597600
if(state.get().link.edit){
598601
allLinkControlItem.forEach(function(arrayItem,index){
@@ -628,8 +631,7 @@ var link = (function(){
628631
add: add,
629632
edit: edit,
630633
remove: remove,
631-
render: render,
632-
tabIndex: tabIndex
634+
render: render
633635
};
634636

635637
})();

0 commit comments

Comments
(0)