JSFiddle - React, Tailwind, and code Playground
HTML
<input id="test" />
JavaScript
$('#test').on('click focus', function(e) {
if ( !$(this).data('fired') ) foo(e);
$(this).data('fired', true);
setTimeout(function(self) {
$(self).data('fired', false);
}, 200, this);
});
function foo(e) {
console.log(e.type); // fires only once
}