Skip to content

Storybook Select knobs with long list is crashing #3

Description

@sreeg123

Select knob with long list options when an option is selected then the page is crashing, will need to reload.

To Reproduce

<Meta
title="Foundations/Icons/Iconography"
decorators={[
withKnobs({
escapeHTML: false
}),
moduleMetadata({
imports: [CommonModule, IconModule]
})
]}
parameters={{
a11y: { ...a11yConfig, element: 'icon' }
}}
/>

export const iconsList = [
{
label: 'vanguardLargeLogo white',
name: 'vanguardLargeLogo',
class: 'vanguardLogoWhite'
}, ........................
]

<Canvas mdxSource={<icon [icon]="iconData"></icon>}>

{{
template: <icon [icon]="iconData"></icon>,
props: {
iconData: select('Icon', iconsList, iconsList[0])
}
}}

System
"@storybook/addon-knobs": "~6.2.3",
Angular - v11.2

Additional context
This code is crashing only after upgrading to Angular 11 from angular 9 and storybook 6.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions