Clicking “Locate Me” fills the Location field with the address, but never sets the hidden latitude/longitude fields, so the search is submitted without any location.
Setup: HivePress 1.8.1 · Geolocation 1.3.11 · ListingHive · WordPress 7.1 · Google Maps provider · Countries restricted to TN.
Steps to reproduce
- On the listings search form, click “Locate Me” and allow location access.
- The Location field is filled with the reverse-geocoded address, and the autocomplete dropdown opens with that same address.
- Check the hidden fields in the console:
[...document.querySelectorAll('input[data-coordinate]')].map(i => i.name + '=' + i.value)
Actual result
- All latitude/longitude inputs are empty.
- If the user clicks anywhere else, the Location field is cleared (no coordinates), and the search is submitted with
latitude=&longitude=&location=all empty, so all listings are shown. - Only if the user selects the suggestion from the dropdown are latitude, longitude and _region filled, and the search works.
Expected result
“Locate Me” should set latitude/longitude directly from the browser’s position, without requiring the user to pick the suggestion.
Already ruled out
- Same behavior with LiteSpeed Cache deactivated.
- Same behavior with “Generate regions” enabled and disabled.
- Same behavior on two separate installs (live and staging).
- HTTPS is enabled, and the Maps JavaScript, Places and Geocoding APIs work (the address is retrieved correctly).
- No JavaScript errors in the console.
Is this a known issue, and is a fix planned?