how to undo a prevent default if condition is met code example
Example: js opposite of preventdefault
event.preventDefault(); //or event.returnValue = false;
//and its opposite(standard) :
event.returnValue = true;
event.preventDefault(); //or event.returnValue = false;
//and its opposite(standard) :
event.returnValue = true;