fix: relationship attribute

This commit is contained in:
Arman committed 2023-03-30 17:37:53 +02:00
1 parent b890aa3309
commit 7fc6b0a73a
2 files changed
+2 -3

No files matched your search

@@ -23,7 +23,7 @@
// Input value
export let search = '';
// The actual selected value
export let value: string | number | boolean;
export let value: string | number | boolean | Record<string, unknown>;
$: selectedOption = options.find((option) => option.value === value);
let element: HTMLInputElement;
@@ -83,7 +83,6 @@
}
function clearOption() {
value = null;
search = '';
element.value = search;
hasFocus = false;
@@ -61,7 +61,7 @@
</script>
{#if isArray}
<div class="u-width-full-line u-max-width-600">
<div class="u-width-full-line">
<div class="u-flex u-cross-center u-main-space-between">
<div>
<Label required={attribute.required} {optionalText} for={id}>