diff --git a/components/src/preact/lineageFilter/lineage-filter.stories.tsx b/components/src/preact/lineageFilter/lineage-filter.stories.tsx index 92752835..00f64349 100644 --- a/components/src/preact/lineageFilter/lineage-filter.stories.tsx +++ b/components/src/preact/lineageFilter/lineage-filter.stories.tsx @@ -37,7 +37,7 @@ const meta: Meta = { args: { lapisField: 'pangoLineage', placeholderText: 'Enter a lineage', - initialValue: 'A.1', + value: 'A.1', width: '100%', }, }; @@ -50,7 +50,7 @@ export const Default: StoryObj = { diff --git a/components/src/web-components/input/gs-lineage-filter.stories.ts b/components/src/web-components/input/gs-lineage-filter.stories.ts index ca31f675..babacb86 100644 --- a/components/src/web-components/input/gs-lineage-filter.stories.ts +++ b/components/src/web-components/input/gs-lineage-filter.stories.ts @@ -15,7 +15,7 @@ const codeExample = String.raw` `; @@ -61,7 +61,7 @@ const Template: StoryObj> = { @@ -70,7 +70,7 @@ const Template: StoryObj> = { args: { lapisField: 'pangoLineage', placeholderText: 'Enter a lineage', - initialValue: 'B.1.1.7', + value: 'B.1.1.7', width: '100%', }, }; @@ -185,6 +185,6 @@ export const FiresEvent: StoryObj> = { }, args: { ...LineageFilter.args, - initialValue: '', + value: '', }, }; diff --git a/components/src/web-components/input/gs-lineage-filter.tsx b/components/src/web-components/input/gs-lineage-filter.tsx index c50d68f8..3de40a87 100644 --- a/components/src/web-components/input/gs-lineage-filter.tsx +++ b/components/src/web-components/input/gs-lineage-filter.tsx @@ -34,7 +34,7 @@ export class LineageFilterComponent extends PreactLitAdapter { * The initial value to use for this lineage filter. */ @property() - initialValue: string = ''; + value: string = ''; /** * Required. @@ -64,7 +64,7 @@ export class LineageFilterComponent extends PreactLitAdapter { ); @@ -91,9 +91,7 @@ declare global { } /* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */ -type InitialValueMatches = Expect< - Equals ->; +type InitialValueMatches = Expect>; type LapisFieldMatches = Expect< Equals >;