Skip to content

A platform for community discussion. Free, open, simple.

FIX: select single choice as default when building a poll

Joffrey JAFFEUXb295c0300178
diff --git a/plugins/poll/assets/javascripts/discourse/templates/modal/poll-ui-builder.hbs b/plugins/poll/assets/javascripts/discourse/templates/modal/poll-ui-builder.hbs
index 376fff2a461..47eaa0c1a26 100644
--- a/plugins/poll/assets/javascripts/discourse/templates/modal/poll-ui-builder.hbs
+++ b/plugins/poll/assets/javascripts/discourse/templates/modal/poll-ui-builder.hbs
@@ -4,6 +4,7 @@
<label class="input-group-label">{{i18n 'poll.ui_builder.poll_type.label'}}</label>
{{combo-box content=pollTypes
value=pollType
+ allowInitialValueMutation=true
valueAttribute="value"}}
</div>