combobox: don't use portal for picker
fixes z-stacking issues when used within dialogs
This commit is contained in:
@@ -41,8 +41,7 @@
|
|||||||
import Label from './Label.svelte';
|
import Label from './Label.svelte';
|
||||||
import StyledRawInput from './StyledRawInput.svelte';
|
import StyledRawInput from './StyledRawInput.svelte';
|
||||||
import { InputValidatorEvent, validate, type ValidatorOptions } from '@svelte-toolkit/validate';
|
import { InputValidatorEvent, validate, type ValidatorOptions } from '@svelte-toolkit/validate';
|
||||||
import { onMount, tick, untrack, type Snippet } from 'svelte';
|
import { untrack, type Snippet } from 'svelte';
|
||||||
import { Portal } from '@jsrob/svelte-portal';
|
|
||||||
import { scale } from 'svelte/transition';
|
import { scale } from 'svelte/transition';
|
||||||
import { generateIdentifier, type IconDef } from './util';
|
import { generateIdentifier, type IconDef } from './util';
|
||||||
import type { ClassValue, MouseEventHandler } from 'svelte/elements';
|
import type { ClassValue, MouseEventHandler } from 'svelte/elements';
|
||||||
@@ -502,7 +501,6 @@
|
|||||||
<svelte:window onclick={handleWindowClick} />
|
<svelte:window onclick={handleWindowClick} />
|
||||||
|
|
||||||
<!-- Combobox picker -->
|
<!-- Combobox picker -->
|
||||||
<Portal target="body">
|
|
||||||
{#if open}
|
{#if open}
|
||||||
<!-- Picker container -->
|
<!-- Picker container -->
|
||||||
<div
|
<div
|
||||||
@@ -549,7 +547,6 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</Portal>
|
|
||||||
|
|
||||||
<!-- Combobox main input container -->
|
<!-- Combobox main input container -->
|
||||||
<div class={classValue}>
|
<div class={classValue}>
|
||||||
|
|||||||
Reference in New Issue
Block a user