JSFiddle - React, Tailwind, and code Playground
by brigand
HTML
<input type="text" id="foo">
<input type="text" id="bar">
JavaScript
foo.onfocus = (e) => {
setTimeout(() => bar.focus());
};
foo.onblur = (e) => {
console.log('blur');
};
bar.onfocus = (e) => {
console.log('focus');
};