Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onSelect={item => {
console.log(item, " Selected");
}}
options={[
{type: "section", label: "SECTION 1"},
{label: "Paddy's Pub"},
{label: "Tyrell Corp"},
{type: "section", label: "SECTION 2"},
{label: "Paper St. Soap Company"},
{label: "Nakatomi Investments"},
{label: "Acme Landscaping"},
{type: "section", label: "SECTION 3"},
{label: "Acme Construction"},
]}
sectionDividerRenderer={
Lookup.DefaultSectionDivider
}
/>
<div>
{
const selection =
data.selection.length === 0
? this.state.leadSourceSelection
: data.selection;
console.log(
"selected: ",
selection[0].label
);
this.setState({</div>