Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit 6f98927

Browse files
authored
refactor: tweak local time component tooltip (#667)
1 parent 86e2108 commit 6f98927

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

resources/assets/js/tippy.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ const destroyTippy = (parentEl = document.body) => {
4747

4848
initTippy();
4949

50+
window.tooltipSettings = tooltipSettings;
51+
5052
window.initTippy = initTippy;
5153

5254
window.destroyTippy = destroyTippy;

resources/views/local-time.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
output = datetime.format(format);
1717
@if($tooltipFormat)
1818
tooltip = datetime.format('{{ $tooltipFormat }}');
19+
$nextTick(() => tippy($el, tooltipSettings));
1920
@endif
2021
"
2122
x-text="output"

0 commit comments

Comments
 (0)