diff --git a/src/lib/Combobox.svelte b/src/lib/Combobox.svelte index 947ccd7..806a2ef 100644 --- a/src/lib/Combobox.svelte +++ b/src/lib/Combobox.svelte @@ -41,7 +41,7 @@ import Label from './Label.svelte'; import StyledRawInput from './StyledRawInput.svelte'; import { InputValidatorEvent, validate, type ValidatorOptions } from '@svelte-toolkit/validate'; - import { untrack, type Snippet } from 'svelte'; + import { type Snippet } from 'svelte'; import { scale } from 'svelte/transition'; import { generateIdentifier, type IconDef } from './util'; import type { ClassValue, MouseEventHandler } from 'svelte/elements'; @@ -314,11 +314,7 @@ easing: cubicOut }); $effect(() => { - if (iconWidth >= 0) { - untrack(() => { - inputPadding.target = calculatePadding(); - }); - } + inputPadding.target = calculatePadding(); }); /*** HELPER FUNCTIONS ***/