JSFiddle - React, Tailwind, and code Playground
by naveed_ahmad
HTML
<input type="text" id="a" />
<input type="text" id="b" />
JavaScript
$("input").focus(function(){
if($(this).val() != ""){
var elm = $(this);
var val = elm.val();
setTimeout(function(){elm.val(val);},1);
}
});