<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"></script>
<select id="user-email-address" name="email" style='width: 200px'></select>
<button id="set-email-manually">
Set Manually
</button>
<p>Changing the field to <code>[email protected]</code> or any of the preloaded values works, and triggers the change event with the correct data. </p>
<p>
Clicking the Set Manually button updates the field and triggers the change event correctly, but select2 does not reflect the change.
</p>
<div id="output">
</div>