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

Keyboard hiding in mobile

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #52742
    talpresstalpress
    Participant

    I have an issue with the search bar on mobile devices. when starting to input the search query, the result section is being visible and closes the keyboard,
    I’ve enabled the “Hide the mobile keyboard when displaying the results?” setting, but it still doesn’t work and hides the keyboard.
    That issue occurs on all search instances everywhere.

    would love some help with that! Thanks!

    #52745
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thanks for the details.

    The issue is unrelated to the plugin, there is a custom coded event listener attached to all ajax request, so when the search is finished it triggers and removes focus from the input, which causes the keyboard to hide.

    #52746
    talpresstalpress
    Participant

    Thank you for your reply, I’ve deactivated the plugin that loads the scripts.js file, but issue still happens

    #52747
    Ernest MarcinkoErnest Marcinko
    Keymaster

    My mistake, I was looking at the wrong debug window.

    The issue is related to the modal container. If you notice, the close (X) button is immediately focused when the search is finished. If I remove that close X button, then the keyboard does not close. I suspect there is something in the modal script that auto-focuses the close button, causing the keyboard close. It is not coming from the search plugin unfortunately, and I couldn’t find which script it is. It could be a mutation observer code, those are extremely hard to debug.

    #52748
    talpresstalpress
    Participant

    Yes, you are absolutely right! I’ve canceled the auto focus to the close button and it seems to be okay now.

    Thank you very much!

    #52749
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

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