Skip to content

Commit

Permalink
update input component in field definition input
Browse files Browse the repository at this point in the history
  • Loading branch information
findolor committed Feb 25, 2025
1 parent 0e76909 commit 21262ba
Showing 1 changed file with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,18 @@
{/each}
</div>
{/if}
<Input
size="lg"
placeholder="Enter custom value"
bind:value={inputValue}
on:input={({ currentTarget }) => {
if (currentTarget instanceof HTMLInputElement) {
handleCustomInputChange(currentTarget.value);
}
}}
/>

{#if !fieldDefinition.presets || fieldDefinition.showCustomField}
<Input
size="lg"
placeholder="Enter custom value"
bind:value={inputValue}
on:input={({ currentTarget }) => {
if (currentTarget instanceof HTMLInputElement) {
handleCustomInputChange(currentTarget.value);
}
}}
/>
{/if}
</div>
</div>

0 comments on commit 21262ba

Please sign in to comment.