From 4f433ada14065e46b0da033f879db231dcc0c679 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> Date: Mon, 11 Nov 2024 12:02:58 +0100 Subject: [PATCH] Combobox: Fix stories (#96206) Spread args onto component in stories --- .../src/components/Combobox/Combobox.story.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/grafana-ui/src/components/Combobox/Combobox.story.tsx b/packages/grafana-ui/src/components/Combobox/Combobox.story.tsx index 1d73722378e..b1c528cc2a7 100644 --- a/packages/grafana-ui/src/components/Combobox/Combobox.story.tsx +++ b/packages/grafana-ui/src/components/Combobox/Combobox.story.tsx @@ -122,6 +122,7 @@ const SelectComparisonStory: StoryFn = (args) => {
= (args) => { + {/*@ts-ignore minWidth and maxWidth has never, which is incompatible with args. It lacks the context that width=25 on the component*/} = (args) => { = (args) => { = (args) => { description="This tests when options have both a label and a value. Consumers are required to pass in a full ComboboxOption as a value with a label" > = (args) => { description="Or without labels, where consumer can just pass in a raw scalar value Value" > = (args) => { = (args) => { flex: 1, }} > - - - + + +
); }