mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-20 03:13:31 +01:00
[#7771] workaround shift+click in Firefox
This commit is contained in:
1 parent
cc4e857090
commit
8af99615c4
11 files changed
+52
-22
No files matched your search
@@ -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();
|
||||
}
|
||||
},
|
||||
}),
|
||||
),
|
||||
),
|
||||
() => {
|
||||
|
||||
Reference in new issue
Block a user