Skip to content

Commit b42de7e

Browse files
authored
chore: remove test combobox (#20998)
1 parent b1d5ecd commit b42de7e

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

packages/react/src/components/ComboBox/ComboBox.stories.js

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -354,54 +354,3 @@ AutocompleteWithTypeahead.argTypes = {
354354
...sharedArgTypes,
355355
onChange: { action: 'onChange' },
356356
};
357-
358-
export const Test = (args) => {
359-
const items = [
360-
{
361-
id: 'option-0',
362-
text: 'An example option that is really long to show what should be done to handle long text',
363-
},
364-
{
365-
id: 'option-1',
366-
text: 'Option 1',
367-
},
368-
{
369-
id: 'option-2',
370-
text: 'Option 2',
371-
},
372-
{
373-
id: 'option-3',
374-
text: 'Option 3 - a disabled item',
375-
disabled: true,
376-
},
377-
{
378-
id: 'option-4',
379-
text: 'Option 4',
380-
},
381-
{
382-
id: 'option-5',
383-
text: 'Option 5',
384-
},
385-
];
386-
return (
387-
<div style={{ width: 300 }}>
388-
<ComboBox
389-
id="carbon-combobox"
390-
items={items}
391-
itemToString={(item) => (item ? item.text : '')}
392-
titleText="ComboBox title"
393-
helperText="Combobox helper text"
394-
onChange={action('onChange')}
395-
initialSelectedItem={{
396-
id: 'option-1',
397-
text: 'Option 1',
398-
}}
399-
selectedItem={{
400-
id: 'option-1',
401-
text: 'Option 1',
402-
}}
403-
{...args}
404-
/>
405-
</div>
406-
);
407-
};

0 commit comments

Comments
 (0)