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')) {
|
if ($article.is('.topic-post')) {
|
||||||
var tabLoc = $article.find('a.tabLoc');
|
var tabLoc = $article.find('a.tabLoc');
|
||||||
if (tabLoc.length === 0) {
|
if (tabLoc.length === 0) {
|
||||||
tabLoc = $('<a href="#" class="tabLoc"></a>');
|
tabLoc = $('<a class="tabLoc"></a>');
|
||||||
$article.prepend(tabLoc);
|
$article.prepend(tabLoc);
|
||||||
}
|
}
|
||||||
tabLoc.focus();
|
tabLoc.focus();
|
||||||
|
|
Loading…
Reference in New Issue