Merge branch 'patching-v0.27'

This commit is contained in:
Dan Brown
2019-10-16 16:37:29 +01:00
4 changed files with 33 additions and 22 deletions

View File

@ -26,10 +26,12 @@ class PageComments {
handleAction(event) {
let actionElem = event.target.closest('[action]');
if (event.target.matches('a[href^="#"]')) {
const id = event.target.href.split('#')[1];
scrollAndHighlightElement(document.querySelector('#' + id));
}
if (actionElem === null) return;
event.preventDefault();