How do you stop InputField from activating when the user left clicks?

I don’t want this behavior that when the user clicks anywhere outside of the InputField it triggers End Edit. I want clicking outside of the InputField to simply deselect the InputField and not send End Edit. Thanks for your help.

I’m guessing you don’t want it to call end edit so it doesn’t call your fuction, right?

You can do something like this:

public void YourFunction(){
	if(Input.GetMouseButtonDown(0)){
		return;
	}
	//your code here
}