This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Mobile search not working

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15205
    wolfproductionswolfproductions
    Participant

    Hi there,

    Basically, this search is set up how we want it but not working at all on mobile and I have no idea why!

    Please advice/fix

    Thanks for your help!

    Look forward to hearing from you asap.

    Thanks again

    #15206
    wolfproductionswolfproductions
    Participant

    You cannot access this content.

    #15209
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    The problem is that the menu actually makes a DOM clone of the search bar in mobile view, so the same searcb bar is ‘copied’, creating invalid HTML and loss of attached event handlers. This is a very bad practice, and it cannot be resolved with any custom code or option – as the issue is caused by the html cloning itself.
    The only possible resolution is to use the search bar in a different position instead. Some menus are simply not made to hold interactive (javascript powered) elements. A simple search form without any features would work, but anything that uses javascript will most likely fail in that position.

    I hope designers will stop using this copy/clone method in menus once and for all, and use CSS media queries instead for much better compatibilty. It is already very rare, but still used.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.