Skip to content

Commit 959bc77

Browse files
committed
Use aria-label if available for section title, prevent default action on page item in file manager
1 parent a6cb0d2 commit 959bc77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/js/vvvebjs/builder.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3346,7 +3346,7 @@ Vvveb.SectionList = {
33463346
window.FrameDocument.body.querySelectorAll(':scope > section, :scope > header, :scope > footer, :scope > main, :scope > nav');
33473347

33483348
sectionList.forEach(function (node, i) {
3349-
let id = node.id ? node.id : (node.title ? node.title : node.className);
3349+
let id = node.id ? node.id : (node.title ? node.title : node.ariaLabel ?? node.className);
33503350
if (!id) {
33513351
id = 'section-' + Math.floor(Math.random() * 10000);
33523352
}
@@ -3637,6 +3637,7 @@ Vvveb.FileManager = {
36373637
if (element) {
36383638
let page = element.parentNode.dataset.page;
36393639
if (page) Vvveb.FileManager.loadPage(page, allowedComponents);
3640+
e.preventDefault();
36403641
return false;
36413642
}
36423643
});

0 commit comments

Comments
 (0)