mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-21 22:36:05 +08:00
Merge branch 'patching-v0.27'
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user