JSFiddle - React, Tailwind, and code Playground
HTML
<input id="test" type="text"/>
<input type="checkbox"/>
<input type="text"/>
<input type="text"/>
<input type="text"/>
JavaScript
$('#test').bind('focusout', function(e) {
if($(this).val() !== 'releaseme') {
setTimeout(function() {
$(e.target).focus();
}, 25);
}
});