Skip to content

Commit

Permalink
refactor: make aria-expandable and other props overrideable
Browse files Browse the repository at this point in the history
  • Loading branch information
dmagunov committed Jul 7, 2024
1 parent 541fad2 commit ee55456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmdk/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -798,19 +798,19 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>((props, forwardedRe
return (
<Primitive.input
ref={forwardedRef}
{...etc}
cmdk-input=""
autoComplete="off"
autoCorrect="off"
spellCheck={false}
aria-autocomplete="list"
role="combobox"
aria-expanded={true}
type="text"
{...etc}
aria-controls={context.listId}
aria-labelledby={context.labelId}
aria-activedescendant={selectedItemId}
id={context.inputId}
type="text"
value={isControlled ? props.value : search}
onChange={(e) => {
if (!isControlled) {
Expand Down

0 comments on commit ee55456

Please sign in to comment.