We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f15563d commit c516e7aCopy full SHA for c516e7a
src/client/javascripts/location-map.js
@@ -112,7 +112,7 @@ export function initMaps(config = {}) {
112
// If there are location components on the page fix up the main form submit
113
// handler so it doesn't fire when using the integrated map search feature
114
if (locations.length) {
115
- const form = document.querySelector('form')
+ const form = locations[0].closest('form')
116
117
if (form === null) {
118
return
0 commit comments