After setting a value to the input, please dispatch a change event for UI update instead. For example:
```
var evt = document.createEvent('Event');
evt.initEvent('change', true, true);
input.dispatchEvent(evt);
```