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

Commit 24ac0fb

Browse files
committed
fix: type error where eventType was always inferred as 'mouseover'
1 parent 35cc095 commit 24ac0fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hoverifier.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,9 @@ export const createHoverifier = ({
481481

482482
/** Emits new positions including context at which a tooltip needs to be shown from clicks, mouseovers and URL changes. */
483483
const resolvedPositions = merge(codeMouseOverTargets, jumpTargets, codeClickTargets).pipe(
484-
map(({ position, resolveContext, ...rest }) => ({
484+
map(({ position, resolveContext, eventType, ...rest }) => ({
485485
...rest,
486+
eventType,
486487
position: Position.is(position) ? { ...position, ...resolveContext(position) } : undefined,
487488
})),
488489
share()

0 commit comments

Comments
 (0)