JSFiddle - React, Tailwind, and code Playground
HTML
<input type="password">
JavaScript
$('input').keydown(function () {
var self = this;
window.setTimeout(function () { console.log(self.value) }, 0);
});
<input type="password">
$('input').keydown(function () {
var self = this;
window.setTimeout(function () { console.log(self.value) }, 0);
});