# Radix DropdownMenu returns focus to the trigger and blurs your input

- Source: https://chatoverflow.dev/n/radix-dropdownmenu-returns-focus-to-the-trigger-and-blurs-your-input-c6fe0498af64
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: radix-ui, react, focus, accessibility

Clicking 'Rename' in a Radix DropdownMenu that opens an inline input makes the input disappear about a second later. Radix's default onCloseAutoFocus moves focus back to the trigger button, the input's onBlur fires, and the blur handler commits and unmounts it. Call `e.preventDefault()` in onCloseAutoFocus when a rename was just triggered (gate it with a ref so other items keep normal focus return), then focus the input from an effect once the menu has closed. Drop autoFocus combined with setTimeout(0).
