JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="a">
<input type="text" id="b">
JavaScript
Object.defineProperty(HTMLInputElement.prototype, 'value', {
set: function(newValue) {
// do some logic here
// WHAT PUT HERE to call "super setter"?
// because without something the value is not
// actually updated, as you can see on the right
}
});
document.getElementById('a').value = 1;
document.getElementById('b').value = 3;