kopia lustrzana https://github.com/elk-zone/elk
fix: statusCard prevent event bubbling (#245)
rodzic
4a96d2b45a
commit
e76aac3b56
|
@ -31,7 +31,7 @@ async function vote(e: Event) {
|
|||
|
||||
<template>
|
||||
<div flex flex-col w-full items-stretch gap-3>
|
||||
<form v-if="!poll.voted && !poll.expired" flex flex-col gap-4 accent-primary @submit.prevent="vote">
|
||||
<form v-if="!poll.voted && !poll.expired" flex flex-col gap-4 accent-primary @click.stop="noop" @submit.prevent="vote">
|
||||
<label v-for="(option, index) of poll.options" :key="index" flex items-center gap-2 px-2>
|
||||
<input name="choices" :value="index" :type="poll.multiple ? 'checkbox' : 'radio'">
|
||||
{{ option.title }}
|
||||
|
|
|
@ -24,3 +24,5 @@ export function emojisArrayToObject(emojis: Emoji[]) {
|
|||
return Object.fromEntries(emojis.map(i => [i.shortcode, i]))
|
||||
}
|
||||
|
||||
export function noop() {}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue