diff options
author | Phil Hughes <me@iamphill.com> | 2018-07-30 10:43:34 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-07-30 11:45:16 +0100 |
commit | 3c62b51ce9de8b0cedc477fd3a5cab0b4de7766f (patch) | |
tree | 184240457113ce8401765be3a5570a5ebe200b33 /app/assets/javascripts/ide/components/new_dropdown | |
parent | 89c56c1fe4e8b9d0815fa768e8609383defb8677 (diff) | |
download | gitlab-ce-3c62b51ce9de8b0cedc477fd3a5cab0b4de7766f.tar.gz |
fixed modal input not clearing
Diffstat (limited to 'app/assets/javascripts/ide/components/new_dropdown')
-rw-r--r-- | app/assets/javascripts/ide/components/new_dropdown/modal.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/assets/javascripts/ide/components/new_dropdown/modal.vue b/app/assets/javascripts/ide/components/new_dropdown/modal.vue index 9bd4648d683..a85d1095362 100644 --- a/app/assets/javascripts/ide/components/new_dropdown/modal.vue +++ b/app/assets/javascripts/ide/components/new_dropdown/modal.vue @@ -59,9 +59,10 @@ export default { } }, focusInput() { - setTimeout(() => { - this.$refs.fieldName.focus(); - }); + this.$refs.fieldName.focus(); + }, + closedModal() { + this.name = ''; }, }, }; @@ -75,6 +76,7 @@ export default { footer-primary-button-variant="success" @submit="submitForm" @open="focusInput" + @closed="closedModal" > <div class="form-group row" |