diff --git a/app/assets/javascripts/discourse/views/combo-box.js.es6 b/app/assets/javascripts/discourse/views/combo-box.js.es6 index 993bec951..fe2381243 100644 --- a/app/assets/javascripts/discourse/views/combo-box.js.es6 +++ b/app/assets/javascripts/discourse/views/combo-box.js.es6 @@ -7,7 +7,7 @@ @module Discourse **/ export default Discourse.View.extend({ - tagName: 'select', + tagName: 'span', attributeBindings: ['tabindex'], classNames: ['combobox'], valueAttribute: 'id', @@ -27,6 +27,7 @@ export default Discourse.View.extend({ none = this.get('none'); // Add none option if required + buffer.push(''); }, valueChanged: function() { - var $combo = this.$(), + var $combo = this.$('select'), val = this.get('value'); if (val !== undefined && val !== null) { $combo.val(val.toString()); @@ -64,7 +66,7 @@ export default Discourse.View.extend({ }.observes('content.@each'), didInsertElement: function() { - var $elem = this.$(), + var $elem = this.$('select'), self = this; $elem.select2({formatResult: this.template, minimumResultsForSearch: 5, width: 'resolve'});