You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When customizing tooltips via #marker-tooltip slot, there are two props available: tooltip and day. The issue is that tooltip is not an array as expected but is provided one by one. So, instead of Tooltip[], we get just Tooltip, causing TypeScript to report errors when trying to work with the data.
This issue does not occur in the #marker slot.
Either the return type of slot should be just a single Tooltip object or it should return an array Tooltip[] as TypeScript expects.
According to docs it should be also array tooltip - The tooltip data provided in the array
Screenshots
Typescript expects array of Tooltips
Single Tooltip returned instead
The text was updated successfully, but these errors were encountered:
Describe the bug
When customizing tooltips via
#marker-tooltip
slot, there are two props available:tooltip
andday
. The issue is thattooltip
is not an array as expected but is provided one by one. So, instead ofTooltip[]
, we get justTooltip
, causing TypeScript to report errors when trying to work with the data.This issue does not occur in the
#marker
slot.Steps to reproduce the behavior:
Expected behavior
Either the return type of slot should be just a single
Tooltip
object or it should return an arrayTooltip[]
as TypeScript expects.According to docs it should be also array tooltip - The tooltip data provided in the array
Screenshots
Typescript expects array of Tooltips
Single Tooltip returned instead
The text was updated successfully, but these errors were encountered: