mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 04:10:22 +08:00
Merge pull request #2898 from kellec/remove_focus_link_href
Remove href attribute from tab link to prevent duplicate event on enter.
This commit is contained in:
commit
d6ff1630a8
@ -240,7 +240,7 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
||||
if ($article.is('.topic-post')) {
|
||||
var tabLoc = $article.find('a.tabLoc');
|
||||
if (tabLoc.length === 0) {
|
||||
tabLoc = $('<a href="#" class="tabLoc"></a>');
|
||||
tabLoc = $('<a class="tabLoc"></a>');
|
||||
$article.prepend(tabLoc);
|
||||
}
|
||||
tabLoc.focus();
|
||||
|
Loading…
x
Reference in New Issue
Block a user