Select2 doesn’t copy the data attributes automatically, instead it holds a reference to the original `<option>` tag as `data.element` (where `data` is passed into `templateResult`). You can pull any data attributes off of there if you need to.
Kevin Brown
--
You received this message because you are subscribed to the Google Groups "select2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to select2+u...@googlegroups.com.
To post to this group, send email to sel...@googlegroups.com.
Visit this group at https://groups.google.com/group/select2.
For more options, visit https://groups.google.com/d/optout.