79785605

Date: 2025-10-08 15:19:51
Score: 1
Natty:
Report link
var isClickHandlerBlocked = false; 

async function toDo(){
    if(isClickHandlerBlocked)
        return; 
    isClickHandlerBlocked = true;

    //await do something

    isClickHandlerBlocked = false;
}

easy way

Does not prevent the click event but it prevents the action from being executed.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Daniel Gamechannel Majunke