import React from 'react'; import ReactDOM from 'react-dom'; import Search from '..'; const dataSource = [ { label: 'Recent label', value: 'Recent', }, { label: 'dress label', value: 'dress', }, { label: 'sunglasses label', value: 'sunglasses', }, { label: 't-shirt label', value: 't-shirt', }, ]; class App extends React.Component { onSearch(value, filterValue) { console.log('onSearch', value, filterValue); } onChange(value, type, e) { console.log('onChange', value, type, e); this.setState({ value, }); } render() { return (
auto highlight first item
no default highlight item, should use UP/DOWN