Prevent inline discussions from pulling focus on load (#23254)

TNL-7094 Remove auto focusing of InlineDiscussion views on load. Removing this unneeded focus management eliminates scroll issues when discussions are contain in an iframe in a parent page.
This commit is contained in:
Adam Butterworth
2020-03-03 08:57:30 -05:00
committed by GitHub
parent be51e92c9e
commit a628016436

View File

@@ -58,7 +58,7 @@
DiscussionUtil.safeAjax({
$elem: this.$el,
$loading: this.$el,
takeFocus: true,
takeFocus: false,
url: url,
type: 'GET',
dataType: 'json',
@@ -212,7 +212,6 @@
});
}
}
this.toggleDiscussionBtn.focus();
},
toggleNewPost: function(event) {