Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85805371
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/components/poll/poll.js b/src/components/poll/poll.js
index ace31e8b8c..cbf5d1421a 100644
--- a/src/components/poll/poll.js
+++ b/src/components/poll/poll.js
@@ -1,8 +1,8 @@
+import { useId } from 'vue'
+
import Checkbox from 'components/checkbox/checkbox.vue'
import Timeago from 'components/timeago/timeago.vue'
-import genRandomSeed from '../../services/random_seed/random_seed.service.js'
-
import { useMergedConfigStore } from 'src/stores/merged_config.js'
import { usePollsStore } from 'src/stores/polls.js'
import { useUsersStore } from 'src/stores/users.js'
@@ -15,11 +15,15 @@ export default {
Checkbox,
},
+ setup() {
+ const uniqueId = useId()
+
+ return { uniqueId }
+ },
data() {
return {
loading: false,
choices: [],
- randomSeed: genRandomSeed(),
}
},
created() {
diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue
index 89f103d159..dfb46cb8f7 100644
--- a/src/components/poll/poll.vue
+++ b/src/components/poll/poll.vue
@@ -36,12 +36,12 @@
</div>
<div
v-else
- :aria-labelledby="`option-vote-${uniqueId}-${index}`"
>
<Checkbox
:radio="!poll.multiple"
:disabled="loading"
:model-value="choices[index]"
+ :aria-labelledby="`option-vote-${uniqueId}-${index}`"
@update:model-value="value => activateOption(index, value)"
>
<RichContent
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Oct 11, 9:44 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1785693
Default Alt Text
(1 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment