forked from AkkomaGang/akkoma-fe
Post on submit, not on enter.
This commit is contained in:
parent
6ad27959a6
commit
a03b92e252
1 changed files with 8 additions and 3 deletions
|
@ -18,7 +18,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="chat-input">
|
<div class="chat-input">
|
||||||
<input v-model="currentMessage" type="text" @keyup.enter="submit(currentMessage)">
|
<form @submit.prevent="submit(currentMessage)">
|
||||||
|
<input v-model="currentMessage" type="text" >
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -41,9 +43,12 @@
|
||||||
}
|
}
|
||||||
.chat-input {
|
.chat-input {
|
||||||
display: flex;
|
display: flex;
|
||||||
input {
|
form {
|
||||||
flex: auto;
|
flex: auto;
|
||||||
|
input {
|
||||||
margin: 0.5em;
|
margin: 0.5em;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue