Select options gone when calling select2


#1

I got a custom select list component which I got in my template as follows {{custom-selectlist optionItems=item.dealTypes }}

This works perfect, and the select render with the list (item.dealTypes)

I then wanted to turn this into a select2 (jquery plugin) and again, works fine when doing this in my compnent export default Ember.Component.extend({ optionItems : [],

    _init: function() {
        this.$().select2();
    }.on('didInsertElement')
});

However then my options not show anymore (they are in the markup though)

Wondered if anyone got a select2 work in a component?

Regards, justanothern00b

ps: don’t want to use an add-on. does not help me much in my journey learning ember.