File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 491
491
<!-- Adding column filter config -->
492
492
{#if cell.isData()}
493
493
{#if props.colFilter?.render}
494
- <div class="">
495
- <Render of={props.colFilter.render} />
496
- </div>
494
+ <Render of={props.colFilter.render} />
497
495
{/if}
498
496
{/if}
499
497
</div>
564
562
{/if}
565
563
{/if}
566
564
</div>
565
+
566
+ <div id="{tableId}-popups" />
Original file line number Diff line number Diff line change 1
1
<script lang="ts">
2
2
import Fa from 'svelte-fa/src/fa.svelte';
3
+ import { onMount } from 'svelte';
3
4
import { faFilter, faPlus, faXmark } from '@fortawesome/free-solid-svg-icons';
4
5
import { popup } from '@skeletonlabs/skeleton';
5
6
import type { PopupSettings } from '@skeletonlabs/skeleton';
221
222
222
223
// Start by adding the default filter
223
224
$: addFilter(options[type][0].value, undefined);
225
+
226
+ onMount(() => {
227
+ const element = document.getElementById(popupId);
228
+ if (element && element.parentElement?.id === `parent-${popupId}`) {
229
+ element.parentElement?.removeChild(element);
230
+ document.getElementById(`${tableId}-popups`)?.appendChild(element);
231
+ }
232
+ });
224
233
</script>
225
234
226
- <form class=" ">
235
+ <div id="parent-{popupId} ">
227
236
<button
228
237
class:variant-filled-primary={active}
229
238
class="btn w-max p-2"
234
243
<Fa icon={faFilter} size="12" />
235
244
</button>
236
245
237
- <div data-popup={`${ popupId}`} id={popupId} class="z-50 ">
246
+ <div data-popup={popupId} id={popupId} class="">
238
247
<div class="card p-3 grid gap-2 shadow-lg w-max bg-base-100">
239
248
<button
240
249
class="btn variant-filled-primary btn-sm"
326
335
>
327
336
</div>
328
337
</div>
329
- </form >
338
+ </div >
You can’t perform that action at this time.
0 commit comments