Skip to content
Snippets Groups Projects
Commit a03b92e2 authored by Roger Braun's avatar Roger Braun
Browse files

Post on submit, not on enter.

parent 6ad27959
No related branches found
No related tags found
1 merge request!182Feature/chat
Pipeline #
......@@ -18,7 +18,9 @@
</div>
</div>
<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>
......@@ -41,9 +43,12 @@
}
.chat-input {
display: flex;
input {
form {
flex: auto;
margin: 0.5em;
input {
margin: 0.5em;
width: 100%;
}
}
}
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment