diff --git a/src/components/ListCreateUpdateModal.vue b/src/components/ListCreateUpdateModal.vue index 5e5640f..c7cde6c 100644 --- a/src/components/ListCreateUpdateModal.vue +++ b/src/components/ListCreateUpdateModal.vue @@ -7,7 +7,7 @@
- +
@@ -31,6 +31,11 @@ export default { toggleModal: function () { this.$emit('toggleModal') }, + createIfEnter: function (e) { + if (e.key === 'Enter') { + this.createItem(); + } + }, createItem: function () { fetch(`${process.env.VUE_APP_API_BASE_URL}/api/lists`, { method: 'POST',