Client location origin exposed filter issue after upgrading to D10

Created on 28 December 2023, 11 months ago

I have been using the proximity filter in client location origin mode on Drupal 9 with no issues, after upgrading to Drupal 10 it is no longer working on mobile devices (continues to work fine on desktop), however there is a particular setup involved which *might* make the mobile thing a red herring.

I have the exposed proximity filter in a block and the block is on the page twice, in two different locations. The reason for this is because the filter needs to be displayed in a particular place for desktop and in a different place for mobile devices. One of the blocks is hidden with CSS depending on whether the site is viewed on a desktop or mobile device.

This all worked perfectly before upgrading to Drupal 10, but now the proximity filter only works for mobile devices if I remove one of the exposed filter blocks, if both blocks remian on the page it doesnt work on mobile devices and if I set 'Show the Client Origin coordinates as summary in the Exposed Form' the coordinates are listed as 'undefined'. As soon as I remove one of the exposed filter blocks it works as expected.

Strangely on desktop devices it works with both blocks still enabled. I am thinking this behavior is because the desktop version of the exposed filter block is rendered by Drupal first.

I was expecting to see some kind of js conflict but there are no errors in the console on chrome android when viewing on mobile device.

The problem is not related to location permissions on the device as I have the 'Locate and Show User Position' feature active on a leaflet map and it works with no issues on mobile devices.

I am thinking this must be related to something that has changed in the block system between Drupal 9 and 10, and that you just cant have the same exposed filter block on the page twice any longer, even though it worked on Drupal 9, or is it something that should still be possible but the Geofield code doesn't account for this scenario?

I understand the issue may not be with this module but if anyone has any suggestions on anything else I can check it would be greatly appreciated!

🐛 Bug report
Status

Active

Version

1.57

Component

Miscellaneous

Created by

🇬🇧United Kingdom problue solutions Northern Ireland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024