• Resolved alusion

    (@alusion)


    Does someone know a way to force the dropdown to be open?
    This comes in handy during development. Otherwise it closes every time when you inspect the dropdown.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Do you have a link that we could check on some things at with?

    Otherwise, I believe the dropdowns and whatnot should have classes on them that denote open/closed status, that you could force override with temporary/local CSS.

    Thread Starter alusion

    (@alusion)

    Ty for the quick reply.
    Was looking for that too. But there is no class that can be toggled. Tried to force it with a JS interval as well, without success. Probably because, also the HTML content in the dropdown is being removed from the DOM after unfocus.

    https://www.temporary-url.com/A4B4F3
    Type ‘flex’ for example. It starts searching on the 4th keystroke.

    TIA

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Ahh, my apologies, I was thinking widgets and instant search more than the Autocomplete functionality and that dropdown. That one I’m not sure of to be honest.

    I do believe that the script blocks at https://github.com/WebDevStudios/wp-search-with-algolia/blob/2.1.0/templates/autocomplete.php#L14-L94 are fairly faithful to the autocomplete markup though, with just small parts being replaced with the actual data.

    There’s script blocks for the header portion of the dropdown, the footer, empty results, and then our default post/term/user suggestions as needed.

    Thread Starter alusion

    (@alusion)

    Trial and error did the job. The span.algolia-autocomplete and it’s child elements are being rendered at the bottom of the DOM. With some best guesses I was able to edit some styling. But preferred to use the inspect element tool ????

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Keep dropdown open (for development purposes)’ is closed to new replies.