From bdfe91914f96750ab3239db46e30af3b20d3906c Mon Sep 17 00:00:00 2001 From: Kane York Date: Tue, 30 Jun 2015 10:13:07 -0700 Subject: [PATCH] FIX: combo-box should assign value on initialize This fixes the bug where admins could post to uncategorized even when it was disabled. --- app/assets/javascripts/discourse/components/combo-box.js.es6 | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/components/combo-box.js.es6 b/app/assets/javascripts/discourse/components/combo-box.js.es6 index e440f839a..b33a2ace2 100644 --- a/app/assets/javascripts/discourse/components/combo-box.js.es6 +++ b/app/assets/javascripts/discourse/components/combo-box.js.es6 @@ -74,6 +74,7 @@ export default Ember.Component.extend({ } self.set('value', val); }); + $elem.trigger('change'); }.on('didInsertElement'), _destroyDropdown: function() {