Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Close compact search bar by click on document doesn't work
- This topic has 5 replies, 2 voices, and was last updated 8 years, 10 months ago by
Ernest Marcinko.
-
AuthorPosts
-
July 14, 2017 at 8:30 am #13940
1Planet
ParticipantHi Ernest,
I decided to go for the compact box layout and I activated the option to close on document click. While it works properly on the desktop version, it unfortunately doesn’t on mobile devices. First I thought the problem is cause by something on my website, but I found out that your demo site has the same problem.
After opening the compact box on ajaxsearchpro.com in my desktop browser I can close it by clicking anywhere on the website, but when I use my smartphone I can just open the search and not close it anymore (just by clicking on the magnifier again, which is not really what I want).
Do you have any idea what causes this problem and how to fix it?
Regards,
ThomasJuly 14, 2017 at 8:49 am #13941Ernest Marcinko
KeymasterHi Thomas,
May I ask what mobile device/browser are you testing on?
I just tried with Android chrome/IOS Safari and both seem to be working fine, the compact box is closing when I click on the document. It might be related to a specific device/browser, I’m guessing?
July 14, 2017 at 5:03 pm #139481Planet
ParticipantHi Ernest,
thanks for looking into it. Well I’m using IOS and Safari, but I will ask some friends to check it with their devices. Once I find the cause of the problem and a solution for it I will update the thread here.
Thanks a lot and have a great day,
ThomasJuly 16, 2017 at 9:20 am #13957Ernest Marcinko
KeymasterHi Thomas,
In the meantime I was able to re-create the issue, it’s indeed an IOS Safari related problem. My test phone was not updated to the latest version, once it was done the problem started appearing.
I’ve managed to fix this as well, but it requires significant modifications in the main JS file, which is compressed by default. So, I have rather made a separate plugin build with the fix included, which I’m attaching to this reply.
To install it, simply proceed as regular updates:
1. Make sure to have a full site back-up before starting any plugin update, in case of issues you can restore everything
2. Deactivate and delete the current search plugin version via the plugin manager (all the options and data will remain in the database)
3. Install and activate this attached version via the plugin manager
4. Clear all site cache including page cache, minify cache, CDN cache, cloudflare etc.. it may take some time for these changes to populate.This version also features a known input ‘zoom’ workaround, which I can hopefully leave in the final release.
I hope this does the trick!July 17, 2017 at 3:20 pm #139691Planet
ParticipantHi Ernest,
Thanks a lot for the fix and I’m happy to say that everything is working fine right now!
Have a great day,
ThomasJuly 17, 2017 at 3:22 pm #13970Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.