diff --git a/src/components/SidebarTabs/TransferOwnership.vue b/src/components/SidebarTabs/TransferOwnership.vue index c83198c50..7f012500a 100644 --- a/src/components/SidebarTabs/TransferOwnership.vue +++ b/src/components/SidebarTabs/TransferOwnership.vue @@ -147,7 +147,7 @@ export default { }, confirmationString() { - return `${this.form.ownerId}/${this.form.title}` + return `${this.form.ownerId}/${this.form.title.replace(/\s/g, ' ').trim()}` }, options() { diff --git a/src/views/Create.vue b/src/views/Create.vue index de3827b54..205b205a7 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" />