Skip to content

Commit 8c81b76

Browse files
committed
Markers should beopen after change when focus is still true
1 parent 0673917 commit 8c81b76

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

dist/angular-leaflet-directive.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,9 @@ angular.module("leaflet-directive").directive('markers', function ($log, $rootSc
14031403
} else if (old_data.focus === undefined || old_data.focus === null || old_data.focus !== true) {
14041404
// The data.focus property must be true so we update if there wasn't a previous value or it wasn't true
14051405
marker.openPopup();
1406+
} else if(old_data.focus === true && data.focus === true){
1407+
// Reopen the popup when focus is still true
1408+
marker.openPopup();
14061409
}
14071410

14081411
// Update the lat-lng property (always present in marker properties)

0 commit comments

Comments
 (0)