diff --git a/src/components/SidebarTabs/TransferOwnership.vue b/src/components/SidebarTabs/TransferOwnership.vue index dbd174348..642bbee3f 100644 --- a/src/components/SidebarTabs/TransferOwnership.vue +++ b/src/components/SidebarTabs/TransferOwnership.vue @@ -144,7 +144,7 @@ export default { ) }, confirmationString() { - return `${this.form.ownerId}/${this.form.title}` + return `${this.form.ownerId}/${this.form.title.replace(/\s/g, ' ').trim()}` }, options() { if (this.isValidQuery) { diff --git a/src/views/Create.vue b/src/views/Create.vue index 8019e1496..ffe8e6f8b 100644 --- a/src/views/Create.vue +++ b/src/views/Create.vue @@ -81,6 +81,7 @@ :placeholder="t('forms', 'Form title')" required autofocus + @keydown.enter.prevent @input="onTitleChange" />