diff options
-rw-r--r-- | src/components/Task.vue | 2 | ||||
-rw-r--r-- | src/components/TheCollections/Calendar.vue | 2 | ||||
-rw-r--r-- | src/components/TheCollections/General.vue | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/components/Task.vue b/src/components/Task.vue index 86ba6cbb..391b0684 100644 --- a/src/components/Task.vue +++ b/src/components/Task.vue @@ -103,7 +103,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. v-click-outside="($event) => cancelCreation($event)" class="task-item add-subtask" > - <form name="addTaskForm" @submit="addTask"> + <form name="addTaskForm" @submit.prevent="addTask"> <input v-model="newTaskName" v-focus :placeholder="subtasksCreationPlaceholder" diff --git a/src/components/TheCollections/Calendar.vue b/src/components/TheCollections/Calendar.vue index 700591d4..6984938a 100644 --- a/src/components/TheCollections/Calendar.vue +++ b/src/components/TheCollections/Calendar.vue @@ -26,7 +26,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. id="add-task" class="add-task" > - <form name="addTaskForm" @submit="addTask"> + <form name="addTaskForm" @submit.prevent="addTask"> <input id="target" v-model="newTaskName" :placeholder="inputString" diff --git a/src/components/TheCollections/General.vue b/src/components/TheCollections/General.vue index 3270f995..2125144d 100644 --- a/src/components/TheCollections/General.vue +++ b/src/components/TheCollections/General.vue @@ -26,7 +26,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. id="add-task" class="add-task" > - <form name="addTaskForm" @submit="addTask"> + <form name="addTaskForm" @submit.prevent="addTask"> <input v-model="newTaskName" :placeholder="inputString" :disabled="isAddingTask" |