Maps component erases existing script that has query parameters

Wappler Version : 3.0.1
Operating System :

Expected behavior

When adding a maps component, an existing entry for the maps.googleapis.com script should be used

Actual behavior

It is replaced

How to reproduce

Add the following to a page:

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=SOME-KEY-VALUE&callback=initAutoComplete&libraries=places" defer></script>

Then add a maps component and the above will be replaced with the default:

<script src="https://maps.googleapis.com/maps/api/js" defer></script>

This has been fixed in Wappler 5.0.2

This topic was automatically closed after 26 hours. New replies are no longer allowed.