I’ve investigated this further and find out that images are in place in the Ajax response which is returned after clicking on the Select2 control. So it’s probably something with the select2 itself.
EDIT:
The root of this problem is ACF Javascript decode_data
function (inside acf-input.js
file). It usesacf.decode()
which strips all the markup with.text()
function.