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