We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
customPosition
1 parent e73beb2 commit 337ce14Copy full SHA for 337ce14
src/VueDatePicker/components/DatePicker/DpCalendar.vue
@@ -261,7 +261,7 @@
261
const handleTooltip = async (day: UnwrapRef<ICalendarDay>, weekInd: number, dayInd: number) => {
262
const el = unrefElement(dayRefs.value[weekInd][dayInd]);
263
if (el) {
264
- if (day.marker?.customPosition) {
+ if (day.marker?.customPosition && day.marker?.tooltip?.length) {
265
markerTooltipStyle.value = day.marker.customPosition(el);
266
} else {
267
const { width, height } = el.getBoundingClientRect();
0 commit comments