diff options
author | Joas Schilling <coding@schilljs.com> | 2023-01-12 16:57:37 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-01-12 16:57:37 +0100 |
commit | 5506229d7696a8db20da99a196eee373d07fe85e (patch) | |
tree | cbdb37f46a4adf79f97eaa3cacc802106ba6c01a /apps | |
parent | d389b54e2ade596982a6055afb9db515219b44ae (diff) | |
download | nextcloud-server-5506229d7696a8db20da99a196eee373d07fe85e.tar.gz nextcloud-server-5506229d7696a8db20da99a196eee373d07fe85e.zip |
fix(user_status): Allow to use enter to complete characters without automatically closing the modal
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_status/src/components/CustomMessageInput.vue | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/user_status/src/components/CustomMessageInput.vue b/apps/user_status/src/components/CustomMessageInput.vue index da985613506..3e121f02e4a 100644 --- a/apps/user_status/src/components/CustomMessageInput.vue +++ b/apps/user_status/src/components/CustomMessageInput.vue @@ -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> @@ -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) }, |