Skip to content

Commit

Permalink
fix(user_status): Allow to use enter to complete characters without a…
Browse files Browse the repository at this point in the history
…utomatically closing the modal

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Jan 12, 2023
1 parent d389b54 commit 5506229
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions apps/user_status/src/components/CustomMessageInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@
:placeholder="$t('user_status', 'What is your status?')"
type="text"
:value="message"
@change="change"
@keyup="change"
@paste="change"
@keyup.enter="submit">
@change="onChange"
@keyup="onKeyup"
@paste="onKeyup">
</div>
</template>

Expand Down Expand Up @@ -97,11 +96,11 @@ export default {
*
* @param {Event} event The Change Event
*/
change(event) {
onKeyup(event) {
this.$emit('change', event.target.value)
},
submit(event) {
onChange(event) {
this.$emit('submit', event.target.value)
},
Expand Down

0 comments on commit 5506229

Please sign in to comment.