1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-20 21:02:10 +02:00

update deps

This commit is contained in:
Morris Brodersen
2023-11-13 20:03:04 +01:00
parent 9d1c3b7b8f
commit 5518d5ec37
37 changed files with 802 additions and 2945 deletions

View File

@@ -68,7 +68,7 @@ export function TodoCustomList(el) {
if (state.list.items.length > 0) {
if (
!confirm(
'Deleting this list will delete its items as well. Are you sure?'
'Deleting this list will delete its items as well. Are you sure?',
)
) {
return;
@@ -79,7 +79,7 @@ export function TodoCustomList(el) {
new CustomEvent('deleteTodoList', {
detail: state.list,
bubbles: true,
})
}),
);
});
@@ -116,7 +116,7 @@ export function TodoCustomList(el) {
new CustomEvent('saveTodoList', {
detail: { list: state.list, title: inputEl.value.trim() },
bubbles: true,
})
}),
);
update({ editing: false });
}
@@ -132,12 +132,11 @@ export function TodoCustomList(el) {
titleEl.innerText = state.list.title || '...';
el.querySelector('.todo-list').dispatchEvent(
new CustomEvent('todoItems', { detail: state.list.items })
new CustomEvent('todoItems', { detail: state.list.items }),
);
el.querySelector(
'.todo-list > .todo-item-input'
).dataset.key = `todo-item-input${state.list.id}`;
el.querySelector('.todo-list > .todo-item-input').dataset.key =
`todo-item-input${state.list.id}`;
el.classList.toggle('-editing', state.editing);