How to stop outline from showing after closing dropdown?
I'm using shadcn-ui and is there a way to not show outline when closing dropdown? or only show the outline when navigating with keyboard.
Solution:Jump to solution
Fixed it. Added this line to the component
```tsx
<DropdownMenuPrimitive.Content
onCloseAutoFocus={(e) => e.preventDefault()}
>...
3 Replies
Solution
Fixed it. Added this line to the component
(c) https://stackoverflow.com/questions/77227586/shadcn-focus-visible-after-click-outside-still-stands
Stack Overflow
Shadcn focus-visible after click outside still stands
Added dropdown via Shadcn but button keeps beeing focused after clicking outside of menu, shoudn't be like this!
Code
Before click outside or select
After click outside or select
Tried to check Rad...