design-system-react
design-system-react copied to clipboard
Lookup without selectedIndex fails
Due to how our app builds, the this.props.selectedIndex || null line in setting this.state drops the || null check, and all strict equality !== or === with null fail because this.state.selectedIndex is undefined. Hacky way to fix this is to make it !=, or you can drop the || null check and check against undefined. There are probably other ways to fix this too :)
Thanks for submitting the issue! Please take a look at my PR: https://github.com/salesforce-ux/design-system-react/pull/199