Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmdk/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ const Separator = React.forwardRef<HTMLDivElement, SeparatorProps>((props, forwa
* All props are forwarded to the underyling `input` element.
*/
const Input = React.forwardRef<HTMLInputElement, InputProps>((props, forwardedRef) => {
const { onValueChange, ...etc } = props
const { onValueChange, role = "combobox", ...etc } = props
const isControlled = props.value != null
const store = useStore()
const search = useCmdk((state) => state.search)
Expand All @@ -807,7 +807,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>((props, forwardedRe
autoCorrect="off"
spellCheck={false}
aria-autocomplete="list"
role="combobox"
role={role}
aria-expanded={true}
aria-controls={context.listId}
aria-labelledby={context.labelId}
Expand Down