JSFiddle - React, Tailwind, and code Playground
by freedawirl
HTML
<input type='text' id='txtLeave'/>
JavaScript
$("#txtLeave").focus(function() {
$(this).mouseout(function() {
alert("leaving...");
$(this).off();
});
});