mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
fix(user_status): Allow to use enter to complete characters without automatically closing the modal
Signed-off-by: Joas Schilling <coding@schilljs.com>
(cherry picked from commit 5506229d76)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
82b3b038b4
commit
d35b860abb
1 changed files with 5 additions and 6 deletions
|
|
@ -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…
Reference in a new issue