# Polls stop working correctly

**URL:** https://meta.discourse.org/t/polls-stop-working-correctly/166324
**Category:** Bug
**Tags:** polls
**Created:** [October 5, 2020, 11:59pm UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324 "2020-10-05T23:59:53Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [October 5, 2020, 11:59pm UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/1 "2020-10-05T23:59:53Z")

</div>

**Hi there,**

I just recently update my Discourse to the latest `4efbf8dc4f` and polls stop working correctly.  
No errors on log.  
Thank you! 🙂

**The inspect console error**

 ![Screen Shot 2020-10-06 at 1.29.04 AM](https://global.discourse-cdn.com/meta/original/3X/f/c/fc5ed19f38604bab29e6798c275859004fe66458.png)

**Test poll**

_Poll ([view on site](https://meta.discourse.org/t/polls-stop-working-correctly/166324/1))_

---

<div class="post-metadata">

### Author: ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)
#### Post date: [October 6, 2020, 12:40am UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/2 "2020-10-06T00:40:52Z")

</div>

Just ran into the same bug. I found it works with a title. The poll builder says “Title (optional)”, but it’s not optional.

_Poll ([view on site](https://meta.discourse.org/t/polls-stop-working-correctly/166324/2))_

_Poll ([view on site](https://meta.discourse.org/t/polls-stop-working-correctly/166324/2))_

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [October 6, 2020, 1:40am UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/3 "2020-10-06T01:40:48Z")

</div>

I can reproduce the issue on our sandbox site: [https://try.discourse.org/t/testing-issue-with-multiple-choice-type-polls/1411](https://try.discourse.org/t/testing-issue-with-multiple-choice-type-polls/1411). I’m testing this with Chrome on Ubuntu.

There seem to be a couple of problems. The first thing I noticed was that with an untitled multiple select poll, checking the poll option did not cause the checkbox to display that it had been checked. When I clicked the “Vote now” button, my selections did get saved. After clicking the “Show vote” button, my votes are being displayed multiple times. There are currently about 24 entries for votes being displayed

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/3/535d0e0afd18c2665542d67cbffe0b1b095a6c31.png)

Trying to create a multiple choice type poll _with_ a title is working, but it is taking quite a long time for the poll to render on try.

Adding markdown header elements above the poll is causing a strange issue. The following markdown:

```plaintext
### A markdown heading above the poll

[poll type=regular results=always chartType=bar]
# A single choice poll with a title
* this
* is
* a
* test
[/poll]

```

is being rendered as:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/f/bf6315480511941e27b1da4b4790756398a197d7.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 6, 2020, 4:02am UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/4 "2020-10-06T04:02:30Z")

</div>

@techAPJ can you investigate?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [October 6, 2020, 6:27am UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/6 "2020-10-06T06:27:45Z")

</div>

This seems like a recent regression in [FEATURE: Add the title attribute to polls (#10759) · discourse/discourse@babbebf · GitHub](https://github.com/discourse/discourse/commit/babbebfb3571b09bfe6600bbe0921ded3c29fb3e#diff-170edb1ef99339086c2d8d1c2b264e90) … and looks like @cvx is already investigating per:

[https://review.discourse.org/t/feature-add-the-title-attribute-to-polls-10759/15880/6?u=techapj](https://review.discourse.org/t/feature-add-the-title-attribute-to-polls-10759/15880/6?u=techapj)

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [October 6, 2020, 6:33am UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/8 "2020-10-06T06:33:39Z")

</div>

It would be great if you could revert the commit in the meantime. 😅

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [October 6, 2020, 2:58pm UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/9 "2020-10-06T14:58:29Z")

</div>

This has now been fixed

[https://github.com/discourse/discourse/commit/5c3f1202cf8f78e2c4063cf53551879cb32c9572](https://github.com/discourse/discourse/commit/5c3f1202cf8f78e2c4063cf53551879cb32c9572)

---

<div class="post-metadata">

### Author: ![cvx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cvx/32/152146_2.png) [@cvx](https://meta.discourse.org/u/cvx)
#### Post date: [October 6, 2020, 3:03pm UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/10 "2020-10-06T15:03:19Z")

</div>

Clarification - that’s a fix for the headings issue. 🙂  
I’m currently fixing the issue of non-interactive polls that don’t have a title (and similar bugs). I’ll update the topic when the PR is up!

---

<div class="post-metadata">

### Author: ![cvx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cvx/32/152146_2.png) [@cvx](https://meta.discourse.org/u/cvx)
#### Post date: [October 6, 2020, 5:10pm UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/11 "2020-10-06T17:10:25Z")

</div>

The second PR (review pending) is here: [FIX: Correctly render title-less poll widgets by cvx · Pull Request #10837 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/10837)

_update: merged_

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [October 6, 2020, 5:17pm UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/12 "2020-10-06T17:17:35Z")

</div>

Thank you so much the quick fix 🙏 Cannot wait to work it again 😊

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [October 6, 2020, 8:37pm UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/13 "2020-10-06T20:37:14Z")

</div>

**Hi Jarek,**

I updated and the main issue is fixed but now there is a new one.  
The poll settings not respond, not changeable. Thank you! 🙂

---

<div class="post-metadata">

### Author: ![Quddus](https://avatars.discourse-cdn.com/v4/letter/q/9d8465/32.png) [@Quddus](https://meta.discourse.org/u/Quddus)
#### Post date: [October 6, 2020, 8:50pm UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/15 "2020-10-06T20:50:55Z")

</div>

It looks like this issue may be related to what I bumped into.

> [@Cannot select options from dropdowns](https://meta.discourse.org/t/cannot-select-options-from-dropdowns/166437):
>
> I just updated our discourse instance to the most recent updates, and noticed when trying to create an invitation link that I could not select a group for the respondents to be included in. Here is the error from the console that was logged when I clicked the option. Poking around a bit more I tried to add a flair to the group, which uses a similar dropdown. When I click the option no change happens. Here is the …

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [October 6, 2020, 11:12pm UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/16 "2020-10-06T23:12:24Z")

</div>

Yes, I think that was the problem. Can you try updating your site to the latest Discourse code? I’ve just updated my local development site and all issues with polls and dropdowns are now resolved on my site.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 6, 2020, 11:27pm UTC](https://meta.discourse.org/t/polls-stop-working-correctly/166324/17 "2020-10-06T23:27:20Z")

</div>


