0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/plugins/poll
Régis Hanol 2956a492b3
FIX: Preserve poll view and in-progress vote across post cloaking (#41001)
Previously, users could not amend their votes on large, open polls —
clicking the "Vote" button left them stuck on the results view, because
the poll component's view and in-progress selection reset whenever the
post was cloaked and re-rendered while scrolling.

This change persists the results toggle and the in-progress selection on
the durable poll object so they survive a re-mount, restoring the ballot
(and any uncommitted choices) when the user scrolls back to the poll.

Meta:
https://meta.discourse.org/t/large-poll-bug-users-cannot-amend-votes-on-open-polls/405511
2026-07-02 16:52:06 +02:00
..
app FEATURE: Record who closed a poll (#40989) 2026-06-29 12:22:43 +02:00
assets FIX: Preserve poll view and in-progress vote across post cloaking (#41001) 2026-07-02 16:52:06 +02:00
config I18N: Update translations (#41287) 2026-06-30 15:45:46 +02:00
db/migrate FEATURE: Record who closed a poll (#40989) 2026-06-29 12:22:43 +02:00
jobs/regular
lib FEATURE: Record who closed a poll (#40989) 2026-06-29 12:22:43 +02:00
spec FEATURE: Record who closed a poll (#40989) 2026-06-29 12:22:43 +02:00
test/javascripts FIX: Preserve poll view and in-progress vote across post cloaking (#41001) 2026-07-02 16:52:06 +02:00
package.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00
plugin.rb FEATURE: Record who closed a poll (#40989) 2026-06-29 12:22:43 +02:00
tsconfig.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00