mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -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> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
parent
50417be8c5
commit
8a0927cbc2
5 changed files with 11 additions and 12 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)
|
||||
},
|
||||
|
||||
|
|
|
|||
4
dist/user-status-modal-8299.js
vendored
4
dist/user-status-modal-8299.js
vendored
File diff suppressed because one or more lines are too long
2
dist/user-status-modal-8299.js.map
vendored
2
dist/user-status-modal-8299.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/user_status-menu.js
vendored
4
dist/user_status-menu.js
vendored
File diff suppressed because one or more lines are too long
2
dist/user_status-menu.js.map
vendored
2
dist/user_status-menu.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue