Skip to content

Commit

Permalink
Merge pull request #36121 from nextcloud/bugfix/noid/allow-keyup-ente…
Browse files Browse the repository at this point in the history
…r-in-user-status

Allow keyup enter in user status
  • Loading branch information
skjnldsv authored Jan 13, 2023
2 parents 9c01fed + 19aa254 commit 62476a3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 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
Loading

0 comments on commit 62476a3

Please sign in to comment.