We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b5c900f + b9ed35d commit 32bffa8Copy full SHA for 32bffa8
lib/app_web/live/app_live.html.heex
@@ -478,13 +478,13 @@
478
class="flex flex-col"
479
x-data="{
480
start: $refs.timer_start ? $refs.timer_start.innerHTML : null,
481
- current: null,
+ current: Date.now(),
482
stop: null,
483
interval: null
484
}"
485
x-init="
486
start = $refs.timer_start.innerHTML;
487
- current = start;
+ current = Date.now();
488
interval = setInterval(() => { current = Date.now(), start = $refs.timer_start ? $refs.timer_start.innerHTML : null }, 500)
489
"
490
>
@@ -524,7 +524,6 @@
524
x-text="timer_text(start, current || stop)"
525
class="text-sm font-mono font-semibold text-right mr-1"
526
527
- 00:00:00
528
</span>
529
</p>
530
</div>
0 commit comments