JSFiddle - React, Tailwind, and code Playground
by Alex Alex
HTML
<select>
<option value="1">1</option>
<option value="2">2</option>
</select>
JavaScript
document.querySelector('select').__defineSetter__('selectedIndex', function () {console.log('set'); return this.selectedIndex});
document.querySelector('select').addEventListener('change', function () {console.log('change', this.selectedIndex)}, false)