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 StyledRawInput from './StyledRawInput.svelte';
|
||||
import { InputValidatorEvent, validate, type ValidatorOptions } from '@svelte-toolkit/validate';
|
||||
import { onMount, tick, untrack, type Snippet } from 'svelte';
|
||||
import { Portal } from '@jsrob/svelte-portal';
|
||||
import { untrack, type Snippet } from 'svelte';
|
||||
import { scale } from 'svelte/transition';
|
||||
import { generateIdentifier, type IconDef } from './util';
|
||||
import type { ClassValue, MouseEventHandler } from 'svelte/elements';
|
||||
@@ -502,8 +501,7 @@
|
||||
<svelte:window onclick={handleWindowClick} />
|
||||
|
||||
<!-- Combobox picker -->
|
||||
<Portal target="body">
|
||||
{#if open}
|
||||
{#if open}
|
||||
<!-- Picker container -->
|
||||
<div
|
||||
class={[
|
||||
@@ -548,8 +546,7 @@
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</Portal>
|
||||
{/if}
|
||||
|
||||
<!-- Combobox main input container -->
|
||||
<div class={classValue}>
|
||||
|
||||
Reference in New Issue
Block a user