-
Hi, In this piece of code
both the Security and Sign out dropdown items are highlighted when I only want the Security one to be. I know I'm using HTML form and input elements, but that's because I haven't got my head around the shadcn-svelte Form and Input components yet (but I will do!) Thanks in the meantime! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I have totally same problem. I identified that the problem is caused by |
Beta Was this translation helpful? Give feedback.
-
I found solution! stackoverflow.com/questions/20962020/ Everyday learning something new :) Add
If you inspect elements in the dropdown by using browser inspect tool it shows that other |
Beta Was this translation helpful? Give feedback.
I found solution! stackoverflow.com/questions/20962020/ Everyday learning something new :)
Add
tabindex='-1'
attribute to the<button>
or<input>
element.Example:
If you inspect elements in the dropdown by using browser inspect tool it shows that other
<DropdownMenu.Item>
elements also have this.