- π¬π§United Kingdom scot.hubbard Fenay Bridge, Huddersfield
I have tested all the scenarios here using the v2 module and everything appear to work fine.
On Step 7, when Drupal tries to load a paragraph instance, Drupal sends down a bunch of commands to the browser (see attachment). By index item #2 (insert), Drupal appends a bunch of script tags to the page, in dependency order. By item #4 (insert), module behaviors are executed. The problem is that the Google Maps API script executes after the behaviors execute, causing references to "google" to blow up.
It might be because the scripts are appended dynamically, thus load asynchronously and execute out of order. This is not an issue when the field is loaded on page load (i.e. not using Paragraphs) since scripts are printed on HTML and will run in the correct order on page load.
Execute module scripts only after Google Maps API has executed by adding a callback. This ensures that it works for both synchronous and asychronously-loaded Google Maps API. See the Simple Map example.
Closed: won't fix
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I have tested all the scenarios here using the v2 module and everything appear to work fine.