fix: add clearable by default for select (#5900)

This commit is contained in:
dieriba
2025-06-07 13:01:38 +02:00
committed by GitHub
parent 86be9e7186
commit a2530afa59
4 changed files with 10 additions and 4 deletions

View File

@@ -84,7 +84,13 @@
<div class="flex flex-row items-center gap-4 w-full mt-2">
{#if options.length > 1}
<div>
<ToggleButtonGroup bind:selected={itemKind} let:item>
<ToggleButtonGroup
bind:selected={itemKind}
let:item
on:selected={() => {
scriptPath = ''
}}
>
{#each options as [label, value, icon, selectedColor]}
<ToggleButton {icon} {disabled} {value} {label} {selectedColor} {item} />
{/each}

View File

@@ -14,7 +14,7 @@
value = $bindable(),
filterText: _filterTextBind = $bindable(undefined),
class: className = '',
clearable = false,
clearable = true,
listAutoWidth = true,
disabled: _disabled = false,
containerStyle = '',

View File

@@ -506,7 +506,7 @@
allowEdit={!$userStore?.operator}
/>
{#if script_path === undefined}
{#if emptyString(script_path)}
<Button
btnClasses="ml-4 mt-2"
color="dark"

View File

@@ -526,7 +526,7 @@
allowEdit={!$userStore?.operator}
/>
{#if emptyStringTrimmed(script_path) && is_flow === false}
{#if emptyString(script_path) && is_flow === false}
<div class="flex">
<Button
disabled={!can_write}