Skip to content

Commit

Permalink
Merge pull request #36132 from nextcloud/backport/36121/stable25
Browse files Browse the repository at this point in the history
[stable25] Allow keyup enter in user status
  • Loading branch information
nickvergessen authored Jan 13, 2023
2 parents 50417be + 8a0927c commit 63a1251
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 63a1251

Please sign in to comment.