fix(frontend): Properly handle click (#2351)

* fix(frontend): Properly handle click

* fix(frontend): Properly handle click
This commit is contained in:
Faton Ramadani
2023-09-28 14:07:26 +02:00
committed by GitHub
parent 87da00c65c
commit dfde7fc195
2 changed files with 6 additions and 1 deletions
@@ -7,15 +7,20 @@
export let last: boolean = false
export let numeric: boolean = false
export let head: boolean = false
export let shouldStopPropagation: boolean = false
let Tag = head ? 'th' : 'td'
const { size } = getContext<DatatableContext>('datatable')
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<svelte:element
this={Tag}
{...$$restProps}
on:click={(e) => {
if (shouldStopPropagation) e.stopPropagation()
}}
class={twMerge(
'px-2 py-3.5 text-left text-xs text-primary font-normal whitespace-nowrap',
first ? 'sm:pl-6' : '',
@@ -141,7 +141,7 @@
<FolderUsageInfo {name} tabular />
<Cell><FolderInfo members={computeMembers(owners, extra_perms)} /></Cell>
<Cell>
<Cell shouldStopPropagation>
<Dropdown
placement="bottom-end"
dropdownItems={[