Evite o evento Blur no clique

let elPreventBlur = document.getElementById(...);
elPreventBlur.addEventListener('blur', (ev) => { 
  		// Prevent the browser default handler
		ev.preventDefault();
        
        ...
        // additional code if required
        ...
});
Darker