Combobox: fix icon padding issue with compact mode

This commit is contained in:
Elijah Duffy
2026-04-12 22:52:19 -07:00
parent e6fc8e8b37
commit c991ac044f

View File

@@ -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 ***/