You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one's kind of hard to explain but I'll do my best here. If a user only has view permissions on an element that has a google maps address field, when opening the slide out editor for that element a second time, the field disappears. This does not appear to be an issue when a user has full permissions to edit the element in the slide out editor
Screen.Recording.2022-11-02.at.11.40.21.AM.mov
Craft Pro 4.3.1
Google Maps 4.2.5
The text was updated successfully, but these errors were encountered:
I think it has something to do with the way that {% js %} tag is handled for the slide out editor, in templates/address/index.twig.
If I replace that twig tag with the following, the address field loads every time as expected.
{# If the library is loaded, initialize all Address fields #}{#{% js 'if (window.google) {initAddressField();}' %}#}<script>if (window.google) { initAddressField(); }</script>
Hey @lindseydiloreto, I'm seeing this behavior too, but in a more generic context than the original poster.
For me it's any time a slideout is triggered more than once at the root level, or when a Map field loads via a nested slideout the field doesn't render. Definitely concur it seems related to how the JS gets fired in these contexts.
This one's kind of hard to explain but I'll do my best here. If a user only has view permissions on an element that has a google maps address field, when opening the slide out editor for that element a second time, the field disappears. This does not appear to be an issue when a user has full permissions to edit the element in the slide out editor
Screen.Recording.2022-11-02.at.11.40.21.AM.mov
Craft Pro 4.3.1
Google Maps 4.2.5
The text was updated successfully, but these errors were encountered: