[#7771] workaround shift+click in Firefox

This commit is contained in:
Gani Georgiev committed 2026-07-22 08:00:34 +03:00
1 parent cc4e857090
commit 8af99615c4
11 files changed
+52 -22

No files matched your search

+13 -4
View File
@@ -138,9 +138,6 @@ export function pageExportCollections(route) {
id: checkboxId,
type: "checkbox",
checked: () => !!data.bulkSelected[collection.id],
onclick: (e) => {
e.target.__shiftKey = e.shiftKey;
},
onchange: (e) => {
let bulkSelected = Object.assign({}, data.bulkSelected);
@@ -167,7 +164,19 @@ export function pageExportCollections(route) {
data.bulkSelected = bulkSelected;
},
}),
t.label({ htmlFor: checkboxId }, collection.name),
t.label({
htmlFor: checkboxId,
textContent: () => collection.name,
// workaround https://github.com/pocketbase/pocketbase/issues/7771
onclick: (e) => {
e.preventDefault();
const input = document.getElementById(e.target.htmlFor);
if (input) {
input.__shiftKey = e.shiftKey;
input.click();
}
},
}),
),
);
});