Answer the question
In order to leave comments, you need to log in
Why are the selects not being styled?
Such a problem. There is a component corresponding to the template component. In him:
import Ember from 'ember';
export default Ember.Component.extend({
store: Ember.inject.service(),
didInsertElement(){
this.$("select").select2({
minimumResultsForSearch: -1
});
},
});
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
sassOptions: {
extension: 'sass'
}
});
app.import('vendor/js/jquery-1.12.2.min.js');
app.import('vendor/js/select2.min.js');
return app.toTree();
};
Answer the question
In order to leave comments, you need to log in
In the template of this component, does the html select element itself exist?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question