Skip to content

Commit

Permalink
chore: add focusOn comment
Browse files Browse the repository at this point in the history
  • Loading branch information
borcherd committed Dec 5, 2024
1 parent 3c4a12e commit b236a86
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const BankListCommand = ({ selectedBank, onSetSearchQuery, onClose, child
const isMobile = useIsMobile();

return (
// Using FocusOn to handle focus of command input but only on desktop
<FocusOn onEscapeKey={onClose} onClickOutside={onClose} autoFocus={!isMobile}>
<Command
className="bg-mfi-action-box-background relative"
Expand Down

0 comments on commit b236a86

Please sign in to comment.