Disable when noValue
This commit is contained in:
parent
4577ba8239
commit
2367ceeb87
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue