design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

<SLDSPicklistBase/> throws error on 'props.value' change to null

Open maksim-aleksandrov opened this issue 11 years ago • 1 comments

<SLDSPicklistBase
    ...
    options={[{"label":"Emerson","value":"emerson001"},{"label":"Emerson Input","value":"emerson_input001"}]}
    value={undefined}
/>

|| /

<SLDSPicklistBase
    value={"emerson001"}
/>

|| /

<SLDSPicklistBase
    value={null}
/>

|| / Uncaught TypeError: Cannot read property 'value' of undefined https://github.com/salesforce-ux/design-system-react/blob/a860be2e195f264aab2c9b2327996de1441e39e8/lib/SLDSPicklistBase/index.js#L97

screen shot 2015-10-25 at 9 56 42 pm screen shot 2015-10-25 at 10 00 27 pm screen shot 2015-10-25 at 10 01 07 pm

maksim-aleksandrov avatar Oct 26 '15 05:10 maksim-aleksandrov

fixed v0.0.18

ivanbogdanov avatar Oct 28 '15 02:10 ivanbogdanov