Skip to content

Commit 10f8d0a

Browse files
committed
AHH
1 parent ab74308 commit 10f8d0a

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/components/ListItems/ListElement.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111

1212
.dropdown {
13-
position: relative;
13+
position: relative;
1414
display: inline-block;
1515
width: 100%;
1616
}
@@ -97,8 +97,7 @@
9797
.ListContainer {
9898
display: flex;
9999
flex-direction: column;
100-
min-height: 60%;
101-
max-height: 64%;
100+
max-height:80%;
102101
max-width: 100%;
103102
overflow-y:auto;
104103
flex:1;

src/components/ListItems/ListElement.vue

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default {
131131
},
132132
methods: {
133133
saveEditableText(index, event) {
134-
let newText = event.target.innerText;
134+
/*let newText = event.target.innerText;
135135
136136
137137
//Limit text length to 500 chars as validation
@@ -149,10 +149,10 @@ export default {
149149
sel.removeAllRanges();
150150
sel.addRange(range);
151151
152-
this.saveList();
152+
this.saveList();*/
153153
},
154154
completeItem(index) {
155-
if (this.itemsArray[index].textString != '') {
155+
if (this.itemsArray[index].textString != null && this.itemsArray[index].textString != '') {
156156
this.completedItemsArray.push(this.itemsArray[index]);
157157
}
158158
this.removeItemByIndex(index);
@@ -196,7 +196,7 @@ export default {
196196
},
197197
loadDefaultItemValues() {
198198
//future makes api call to get this user's default values
199-
199+
200200
},
201201
createNewItem(text) {
202202
return {
@@ -214,7 +214,6 @@ export default {
214214
},
215215
createItemWithExistingValues(text) {
216216
return {
217-
218217
//Will be replaced eventually
219218
textString: text,
220219
scheduledCheckbox: this.scheduledCheckbox,
@@ -378,12 +377,12 @@ export default {
378377
379378
this.$nextTick(() => {
380379
this.focusEditable(newIndex);
380+
this.itemsArray.splice(index, 1);
381+
if (this.itemsArray.length === 0) {
382+
this.itemsArray.push(this.createNewItem('')); // Add an empty item as a base case
383+
this.saveList();
384+
}
381385
});
382-
this.itemsArray.splice(index, 1);
383-
if (this.itemsArray.length === 0) {
384-
this.itemsArray.push(this.createNewItem('')); // Add an empty item as a base case
385-
}
386-
this.saveList();
387386
}
388387
},
389388
setCaretPosition(element, position) {

src/views/Dashboard.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<ListElement listName="Daily List"/>
1616
</div>
1717
</div>
18+
1819
</div>
1920
</template>
2021

@@ -46,6 +47,7 @@ export default {
4647
},
4748
methods: {
4849
handleTaskUpdates(updatedTasks, listName) {
50+
4951
},
5052
handleTaskClicked(taskData) {
5153

0 commit comments

Comments
 (0)