+ {@const { onclick, ...rest } = props}
+
{#if label}
{/if}
@@ -68,6 +69,7 @@ function handleInputClick() {
placeholder={placeholder}
bind:value={value}
onkeydown={handleKeyDown}
+ onclick={handleInputClick}
class="flex flex-row flex-1"
/>
@@ -76,7 +78,12 @@ function handleInputClick() {
e.preventDefault()}
- class="w-max"
+ onInteractOutside={(e => {
+ if (e.target === triggerRef) {
+ e.preventDefault();
+ }
+ })}
+ class="w-(--bits-popover-anchor-width) min-w-(--bits-popover-anchor-width)"
>
{@render children?.({ id: contentId })}