diff options
| author | Roger Braun <rbraun@Bobble.local> | 2017-12-05 12:09:54 +0100 |
|---|---|---|
| committer | Roger Braun <rbraun@Bobble.local> | 2017-12-05 12:09:54 +0100 |
| commit | a03b92e252406a8469a9ffe871a6882b3aedb366 (patch) | |
| tree | c59bce0497b6e46a209edd757aa88945e5b6c7f0 /src/components/chat/chat.vue | |
| parent | 6ad27959a696ea0e4f6fe43a98daf4b99bb973ff (diff) | |
Post on submit, not on enter.
Diffstat (limited to 'src/components/chat/chat.vue')
| -rw-r--r-- | src/components/chat/chat.vue | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/components/chat/chat.vue b/src/components/chat/chat.vue index 9d3ab39c..0c397472 100644 --- a/src/components/chat/chat.vue +++ b/src/components/chat/chat.vue @@ -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> |
