fix(user_status): Allow to use enter to complete characters without automatically closing the modal

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/36121/head
Joas Schilling 1 year ago
parent d389b54e2a
commit 5506229d76
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205

@ -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)
},

Loading…
Cancel
Save