{#if underlyingInputEl === 'textarea'} {:else if underlyingInputEl === 'input'} e.stopImmediatePropagation()} bind:this={inputEl} bind:value /> {:else if underlyingInputEl === 'div'} {@const { disabled, placeholder, ...divProps } = (inputProps ?? {}) as DivInputProps}
{ if (e.key === 'Enter') e.preventDefault() divProps?.onkeydown?.(e) }} class={fullClassName} data-placeholder={placeholder ?? ''} onpointerdown={(e) => e.stopImmediatePropagation()} oninput={(e) => { value = e.currentTarget.textContent ?? '' }} bind:this={inputEl} >
{/if}