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

janko 2024-04-01 17:57:34 +02:00
parent e17ba84505
commit 16763e3d69
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' }}