XF 2.0 Input field to popup menu

Russ

Well-known member
I have a basic form, where the first input would activate a popup:

Code:
<form method="post" data-no-auto-focus="true">
    <xf:textbox data-xf-click="menu" />
    <div class="menu menu--structural menu--wide" data-menu="menu">
        <div class="menu-content">
            <div class="block-row">
                random menu
            </div>
        </div>
    </div>
</form>

This works but... the input loses the focus, and when you try clicking on it again it closes the menu. Any way to make it so the input stays focused when clicked? I'm hoping I'm missing the obvious here.
 
Bump :cry:

I should note, I'm aware I could achieve this with some extra JS but I'm curious if there's a way built into XF already to handle it.
 
Top Bottom