Fix row selection being cleared when exporting rows, and ignore download-js click events in click-outside handler
This commit is contained in:
parent
1ec5df1299
commit
e01e91e075
|
@ -1,4 +1,8 @@
|
||||||
const ignoredClasses = [".flatpickr-calendar", ".spectrum-Popover"]
|
const ignoredClasses = [
|
||||||
|
".flatpickr-calendar",
|
||||||
|
".spectrum-Popover",
|
||||||
|
".download-js-link",
|
||||||
|
]
|
||||||
let clickHandlers = []
|
let clickHandlers = []
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -9,13 +9,21 @@
|
||||||
$: selectedRowArray = Object.keys($selectedRows).map(id => ({ _id: id }))
|
$: selectedRowArray = Object.keys($selectedRows).map(id => ({ _id: id }))
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ExportButton
|
<span data-ignore-click-outside="true">
|
||||||
{disabled}
|
<ExportButton
|
||||||
view={$tableId}
|
{disabled}
|
||||||
filters={$filter}
|
view={$tableId}
|
||||||
sorting={{
|
filters={$filter}
|
||||||
sortColumn: $sort.column,
|
sorting={{
|
||||||
sortOrder: $sort.order,
|
sortColumn: $sort.column,
|
||||||
}}
|
sortOrder: $sort.order,
|
||||||
selectedRows={selectedRowArray}
|
}}
|
||||||
/>
|
selectedRows={selectedRowArray}
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
span {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue