From 2316bcc842052a1b656acd00c1a270913741228f Mon Sep 17 00:00:00 2001 From: tusooa Date: Sat, 18 Feb 2023 13:40:42 -0500 Subject: [PATCH] Fix poll interaction --- src/components/poll/poll.js | 3 +- src/components/poll/poll.vue | 92 +++++++++++++++++++++--------------- 2 files changed, 55 insertions(+), 40 deletions(-) diff --git a/src/components/poll/poll.js b/src/components/poll/poll.js index eda1733a07..e4d6869a41 100644 --- a/src/components/poll/poll.js +++ b/src/components/poll/poll.js @@ -12,7 +12,8 @@ export default { data () { return { loading: false, - choices: [] + choices: [], + randomSeed: `${Math.random()}`.replace('.', '-') } }, created () { diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue index cacc329823..b3a74c4932 100644 --- a/src/components/poll/poll.vue +++ b/src/components/poll/poll.vue @@ -4,53 +4,63 @@ :class="containerClass" >
-
- - {{ percentageForOption(option.votes_count) }}% - - +
+ + {{ percentageForOption(option.votes_count) }}% + + +
+
-
-
- - - + + + +