mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: move v-if to SelectIcon to avoid as-child without child element
When loading is true, the inner <i> was removed leaving SelectIcon with as-child but no child to forward attributes to. Move the guard to SelectIcon itself so it unmounts entirely when loading. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -37,9 +37,8 @@
|
||||
<slot v-else name="icon" />
|
||||
<SelectValue :placeholder="label" class="truncate" />
|
||||
</div>
|
||||
<SelectIcon as-child>
|
||||
<SelectIcon v-if="!loading" as-child>
|
||||
<i
|
||||
v-if="!loading"
|
||||
class="icon-[lucide--chevron-down] shrink-0 px-3 py-2 text-muted-foreground"
|
||||
/>
|
||||
</SelectIcon>
|
||||
|
||||
Reference in New Issue
Block a user