Skip Navigation

[Resolved] Location search autocompletion replaces selection with precious search

This support ticket is created 5 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by Beda 4 years, 10 months ago.

Assisted by: Beda.

Author
Posts
#1384559

I am trying to:
On a customers site, I have build a search view where users can search for a company based on their location. When you enter a city and select it from the autocompletion list, after a second the field gets cleared. If you search again and select the city a second time, it stays in the field. Now if you search another city, it gets replaced by the previous city.

You can try it out for yourself. Simply enter different cities e. g. first Köln, then München, then Hamburg. I can't explain this behaviour and already tried to debug it. Is this a known issue? I remember that this hasn't happened a few month ago when I have built the view.

Link to a page where the issue can be seen: hidden link

#1384819

I can confirm the issue on your site.
But locally or on other test sites I do not see this issue, even using autosuggestion for the center of distance and ajaxified searches.

I guess the first thing we would need to check here is:
- is the issue happening also without other software?
- does the issue persist with another theme?
- do you use any custom code? If so is the issue resolved when not?

If that does not help, I can then look at this on a duplicate or online (preferred: duplicate) so I can debug it further and come up with a solution (or forward it to the DEV for fixing)

For this purpose I already enabled a private reply.
You can see here how to create a Duplicate of the site https://toolset.com/faq/provide-supporters-copy-site/

#1384891

I think I now know whats going on. After hours of debugging and searching, I found the issue. I have split the view into the search part and the result part. I am now able to reproduce the issue. The problem seems to be that if you display only the results, the filters still get added but they get hidden. This results in the event to update the text field being fired twice, once for each set of filters. Can you please verify this issue?

#1384925

There are unfortunately many issues with Split Views.

I think it is actually the precise same problem, so I have already escalated this ticket.
https://toolset.com/errata/toolset-maps-distance-search-location-input-cannot-be-used-when-the-views-is-displayed-in-split-mode/

#1514145

This is now released in Toolset Maps 2.0.2.

We release updates in batches if you do not see the update in the plugins area, click on "check for updates" or get it from your toolset.com/account/downloads area.

Please let me know if it's solved for you as well!