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
Ah! The field name is dynamic (specified in the blueprint file), so it can be everything of course.
You can fix it for now with locationField: $("[type=geolocation]"), as long if you facilitate only one instance per page.
@tickHub I was unaware that the field type in the blueprint is set as the <input type='geolocation'> in the panel directly. I thought it was only needed to activate the custom field.
Selecting an input on an 'invalid' type attribute doesn't feel like the way to go. I would rather stick with the id of the field and instruct people to use location as the field name in their blueprint. I will update the readme.
But please feel free to issue a PR if you have a solid solution for this. Maybe loop through all the input fields with data-field="location" to allow multiple instances?
In geolocation.js you refer to the location field as
locationField: $("#form-field-location")
But i think it should be
locationField: $("#form-field-coordinates")
The text was updated successfully, but these errors were encountered: