Skip to content

Dropdown menu item highlighted when it shouldn't be #934

Answered by devjume
brucegl asked this question in Help
Discussion options

You must be logged in to vote

I found solution! stackoverflow.com/questions/20962020/ Everyday learning something new :)

Add tabindex='-1' attribute to the <button> or <input> element.
Example:

<form method="POST" action="/?/logout">
  <DropdownMenu.Item>
    <button type="submit" tabindex='-1'>Logout</button>
  </DropdownMenu.Item>
</form>

If you inspect elements in the dropdown by using browser inspect tool it shows that other <DropdownMenu.Item> elements also have this.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by brucegl
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