Merge pull request #4226 from tchak/fix-carto

Fix carte initialize
This commit is contained in:
LeSim 2019-08-21 10:59:56 +02:00 committed by GitHub
commit ce97b8c359
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ function diplayMap(element, data, initial = false) {
} }
} }
addEventListener('ds:page:update', initialize); addEventListener('turbolinks:load', initialize);
addEventListener('carte:update', ({ detail: { selector, data } }) => { addEventListener('carte:update', ({ detail: { selector, data } }) => {
const element = document.querySelector(selector); const element = document.querySelector(selector);