You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web_src/js/features/repo-home.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -150,8 +150,9 @@ export function initRepoTopicBar() {
150
150
},
151
151
onLabelCreate(value){
152
152
value=value.toLowerCase().trim();
153
-
// keep the same as template (repo-topic-label)
154
-
const$el=$(`<div class="ui small label topic" data-value="${htmlEscape(value)}" >${htmlEscape(value)}<i class="delete icon"></i></div>`);
153
+
// `this` is the default label jQuery element, it's "<a class="ui small label">"
154
+
// we create a new div element to replace it, to keep the same as template (repo-topic-label), because we do not want the `<a>` tag to affect aria focus.
155
+
const$el=$(`<div class="ui small label topic" data-value="${htmlEscape(value)}">${htmlEscape(value)}<i class="delete icon"></i></div>`);
0 commit comments