) => {
+ if (event.detail) {
selectedIssueIds.add(id)
} else {
selectedIssueIds.delete(id)
@@ -116,7 +113,7 @@
{
+ on:value={(event) => {
handleIssueSelected(docObject._id, event)
}}
/>
diff --git a/plugins/view-resources/src/components/Table.svelte b/plugins/view-resources/src/components/Table.svelte
index ae2d696187..9ceb57ac7d 100644
--- a/plugins/view-resources/src/components/Table.svelte
+++ b/plugins/view-resources/src/components/Table.svelte
@@ -48,7 +48,8 @@
const dispatch = createEventDispatcher()
- $: sortingFunction = (config.find(it => (typeof it !== 'string') && it.sortingKey === sortKey) as BuildModelKey)?.sortingFunction
+ $: sortingFunction = (config.find((it) => typeof it !== 'string' && it.sortingKey === sortKey) as BuildModelKey)
+ ?.sortingFunction
let qindex = 0
async function update (
@@ -103,11 +104,9 @@
let checked: Set[> = new Set][>()
- function check (id: Ref, e: Event) {
+ function check (id: Ref, event: CustomEvent) {
if (!enableChecking) return
- const target = e.target as HTMLInputElement
- const value = target.checked
- if (value) {
+ if (event.detail) {
checked.add(id)
} else {
checked.delete(id)
@@ -138,8 +137,8 @@
0}
- on:change={(e) => {
- objects.map((o) => check(o._id, e))
+ on:value={(event) => {
+ objects.map((object) => check(object._id, event))
}}
/>
]
@@ -182,20 +181,23 @@
{
- check(object._id, e)
+ on:value={(event) => {
+ check(object._id, event)
}}
/>
{/if}
-
+
{:else}
{
- check(object._id, e)
+ on:value={(event) => {
+ check(object._id, event)
}}
/>
@@ -209,7 +211,11 @@
value={getObjectValue(attribute.key, object) ?? ''}
{...attribute.props}
/>
-
@@ -236,9 +242,7 @@
{#if enableChecking}
-
+
|
{/if}