popravek buga ENTER na PojemForm. Zdaj naslov ne naredi nič, na email input pa nardi submit.

pull/57/head
janko 2024-04-01 17:57:34 +02:00 committed by Jurij Podgoršek
parent 9aadc46355
commit 2691b43a00
1 changed files with 2 additions and 2 deletions

View File

@ -60,11 +60,11 @@ const etherNalozen = ev => {
<template>
<form class="pojem" @submit.prevent>
<input name="naslov" type="text" placeholder="Naslov" v-model="naslov">
<input name="naslov" type="text" placeholder="Naslov" v-model="naslov" @keydown.enter.prevent>
<EtherpadTextarea :onLoad="etherNalozen" :revisionId="props.revisionId" />
<input name="email" type="email" placeholder="E-poštni naslov" v-model="email">
<input name="email" type="email" placeholder="E-poštni naslov" v-model="email" @keydown.enter="oddajPredlog">
<div class="gumbi">
<button class="gumb" @click="props.onZapri">
{{ props.zapriLabel ?? 'Zapri' }}