Skip to content

Commit

Permalink
Autofocus QueueSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Nov 19, 2020
1 parent 1743ecb commit cd85eee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/QueueSelector/QueueSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default function QueueSelector({ selectedQueues, setSelectedQueues }) {
{...params}
variant="outlined"
placeholder={selectedQueues.length === 0 ? "Click or type to select queues." : ""}
autoFocus
// The MUI Autocomplete component uses the InputProps.startAdornment to store chips fpr multi-selection.
// Using InputProps.startAdornment directly will override those chips. Code below is a workaround.
// See: https://github.com/mui-org/material-ui/issues/19479
Expand Down

0 comments on commit cd85eee

Please sign in to comment.