Skip to content

Commit 56a39e4

Browse files
authored
Fix event listener method for animation end
Changes 'addListener' to 'addEventListener'
1 parent c042287 commit 56a39e4

File tree

1 file changed

+1
-1
lines changed
  • samples/advanced-markers-animation

1 file changed

+1
-1
lines changed

samples/advanced-markers-animation/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function createMarker(map, AdvancedMarkerElement, PinElement) {
9292
});
9393

9494
content.style.opacity = '0';
95-
content.addListener('animationend', (event) => {
95+
content.addEventListener('animationend', (event) => {
9696
content.classList.remove('drop');
9797
content.style.opacity = '1';
9898
});

0 commit comments

Comments
 (0)