Skip to content

Commit

Permalink
Fix the default values for draggable/enabled
Browse files Browse the repository at this point in the history
Reverts an unintended breaking change in 1.11.0. The default values should map the default ones in MapKit JS.
  • Loading branch information
Nicolapps committed Sep 30, 2023
1 parent 6ff638a commit 0e015ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/Annotation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export default function Annotation({
onDragStart = undefined,
onDragEnd = undefined,

animates = undefined,
animates = true,
appearanceAnimation = '',
draggable = undefined,
enabled = undefined,
draggable = false,
enabled = true,

children,
}: AnnotationProps) {
Expand Down
6 changes: 3 additions & 3 deletions src/components/Marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export default function Marker({
selectedGlyphImage = undefined,

selected = undefined,
animates = undefined,
animates = true,
appearanceAnimation = '',
draggable = undefined,
enabled = undefined,
draggable = false,
enabled = true,
onSelect = undefined,
onDeselect = undefined,
onDragStart = undefined,
Expand Down

0 comments on commit 0e015ec

Please sign in to comment.