Skip to content

Commit

Permalink
Avoid attach useless events on trek marker
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Mar 30, 2023
1 parent e6332f0 commit fc1345f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Map/components/HoverableMarker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export const HoverableMarker: React.FC<TrekOrTouristicContentProps | TrekChildPr
<Marker
position={props.position}
eventHandlers={{
mouseover: props.onMouseOver,
mouseout: props.onMouseOut,
...(props.onMouseOver && { mouseover: props.onMouseOver }),
...(props.onMouseOut && { mouseout: props.onMouseOut }),
}}
icon={
isTrekChild(props)
Expand Down

0 comments on commit fc1345f

Please sign in to comment.