import React, {Component} from 'react'; import Select from '@jetbrains/ring-ui/components/select/select'; import '@jetbrains/ring-ui/components/input-size/input-size.scss'; class WithFuzzySearchFilterComponent extends Component { constructor(props) { super(props); this.state = {selected: props.data[0]}; } clearSelection = () => { this.setState({selected: null}); }; onSelect = option => { window.location.href = `${window.pathToRoot}${option.location}?query${option.name}`; this.setState({selected: option}); debugger }; render() { return (