Skip to content

Cant get a dropdown to appear below the clicked nav item #1872

Answered by estevanmaito
finchy70 asked this question in Help
Discussion options

You must be logged in to vote

I indented it better so you can see what is going on:

<div class="relative">
    <a x-on:click="open = !open" class="text-white group inline-flex items-center space-x-2 text-base leading-6 font-medium hover:text-gray-900 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150">
        <span class="cursor-pointer">More Services</span>
    </a>
</div> <!-- 👈 this is the end of the relative div -->
<!-- 👇 this is outside of the relative div, and is treated like the other nav links -->
<div x-show="open" x-description="Profile dropdown panel, show/hide based on dropdown state."
                 x-transition:enter="transition ease-out duration-200"
                 x-transi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@finchy70
Comment options

Answer selected by finchy70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants