Mecanim animation playing once on button press

I have a problem with playing it ONCE. To each button I assigned the trigger. When I press button, it plays okay, but when I rapidly pressing button, it plays once, and after animation completion it plays once more.
Here’s my transition from idle animation to attack.

Does checking Has Exit Time reset the animation every time you spam the play animation button?

The same with me.
I

I play again when jump animation is in progress,but when Jump end,it trans to idle and jump again.
I don’t want mecanim system respond my jump action until jump animation is end.
For the time being, I have to write another scipt in OnStateExit function to call ResetTrigger function.