I have the following script :
class GlobalSearch extends Component {
search_blur(){
console.log("inside_blur_function");
}
render(){
return(
<div className="search-container">
<input type="search" onBlur="{this.search_blur}"/>
</div>
);
}
}
But, when I run the script, it returns the following error :
Uncaught Error: Expected onBlur listener to be a function, instead got type string
I had googled around to find the solutions for a couple hours, but couldn't find any correct solutions. Any pointers?