[#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

+12 -4
View File
@@ -359,9 +359,6 @@ export function logsList(logsSettings) {
id: "cb_" + log.id,
type: "checkbox",
checked: () => !!data.bulkSelected[log.id],
onclick: (e) => {
e.target.__shiftKey = e.shiftKey;
},
onchange: (e) => {
let bulkSelected = Object.assign({}, data.bulkSelected);
@@ -388,7 +385,18 @@ export function logsList(logsSettings) {
data.bulkSelected = bulkSelected;
},
}),
t.label({ htmlFor: "cb_" + log.id }),
t.label({
htmlFor: "cb_" + log.id,
// 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();
}
},
}),
),
),
t.td({ className: "col-field-name-level" }, logLevel(log)),
+12 -4
View File
@@ -593,9 +593,6 @@ window.app.components.recordsList = function(propsArg = {}) {
type: "checkbox",
id: () => uniqueId + record.id,
checked: () => !!data.bulkSelected[record.id],
onclick: (e) => {
e.target.__shiftKey = e.shiftKey;
},
onchange: (e) => {
let bulkSelected = Object.assign({}, data.bulkSelected);
@@ -622,7 +619,18 @@ window.app.components.recordsList = function(propsArg = {}) {
data.bulkSelected = bulkSelected;
},
}),
t.label({ htmlFor: uniqueId + record.id }),
t.label({
htmlFor: uniqueId + record.id,
// 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();
}
},
}),
),
),
() => {
+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();
}
},
}),
),
);
});