A platform for community discussion. Free, open, simple.
FIX: Poll voters list wasn't expanding properly (#28823)
Penar Musaraj1a88728d39b4
diff --git a/plugins/poll/assets/javascripts/discourse/components/poll.gjs b/plugins/poll/assets/javascripts/discourse/components/poll.gjsindex 71734f00e3f..31cae773f1c 100644--- a/plugins/poll/assets/javascripts/discourse/components/poll.gjs+++ b/plugins/poll/assets/javascripts/discourse/components/poll.gjs@@ -479,7 +479,8 @@ export default class PollComponent extends Component {this.preloadedVoters = Object.assign(preloadedVoters);- votersCount = this.options.find((option) => option.id === optionId).votes;+ votersCount = this.options.find((option) => option.id === optionId).voters+ .length;return ajax("/polls/voters.json", {data: {diff --git a/plugins/poll/assets/stylesheets/common/poll.scss b/plugins/poll/assets/stylesheets/common/poll.scssindex fb4d7ce3de7..6db6031a496 100644--- a/plugins/poll/assets/stylesheets/common/poll.scss+++ b/plugins/poll/assets/stylesheets/common/poll.scss@@ -336,6 +336,7 @@ div.poll-outer {}.poll-voters-toggle-expand {+ margin-top: 0.25em;width: 100%;text-align: center;