mirror of
https://github.com/morris/vanilla-todo.git
synced 2025-08-26 15:24:23 +02:00
fix seeking dates on safari
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
"format-check": "prettier --check .",
|
||||
"lint": "eslint public",
|
||||
"lint-styles": "stylelint public/styles/*",
|
||||
"serve": "http-server public"
|
||||
"serve": "http-server -c-1 public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@@ -121,7 +121,7 @@ export function TodoStore(el) {
|
||||
);
|
||||
|
||||
el.addEventListener('seekDays', (e) => {
|
||||
const t = new Date(`${state.at} 00:00:00`);
|
||||
const t = new Date(`${state.at}T00:00:00`);
|
||||
t.setDate(t.getDate() + e.detail);
|
||||
|
||||
dispatch({ at: formatDateId(t) });
|
||||
|
Reference in New Issue
Block a user