1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

Disable when noValue

This commit is contained in:
Adria Navarro 2023-10-03 13:25:56 +02:00
parent 4577ba8239
commit 2367ceeb87
2 changed files with 6 additions and 1 deletions

View file

@ -288,7 +288,10 @@
bind:value={filter.value}
/>
{:else if filter.type === FieldType.BB_REFERENCE}
<FilterUsers bind:value={filter.value} />
<FilterUsers
bind:value={filter.value}
disabled={filter.noValue}
/>
{:else}
<DrawerBindableInput disabled />
{/if}

View file

@ -5,6 +5,7 @@
import { API } from "api"
export let value = null
export let disabled
export let multiple = false
$: fetch = fetchData({
@ -38,4 +39,5 @@
{options}
getOptionLabel={option => option.email}
getOptionValue={option => option._id}
{disabled}
/>