Skip to content

Commit

Permalink
[select] fix(Suggest): Default autoComplete for text input to "off" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
skurger authored and adidahiya committed Oct 5, 2019
1 parent f82f938 commit 2085d1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/select/src/components/select/suggest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class Suggest<T> extends React.PureComponent<ISuggestProps<T>, ISuggestSt
const { fill, inputProps = {}, popoverProps = {} } = this.props;
const { isOpen, selectedItem } = this.state;
const { handleKeyDown, handleKeyUp } = listProps;
const { placeholder = "Search..." } = inputProps;
const { autoComplete = "off", placeholder = "Search..." } = inputProps;

const selectedItemText = selectedItem ? this.props.inputValueRenderer(selectedItem) : "";
// placeholder shows selected item while open.
Expand Down Expand Up @@ -181,6 +181,7 @@ export class Suggest<T> extends React.PureComponent<ISuggestProps<T>, ISuggestSt
onOpened={this.handlePopoverOpened}
>
<InputGroup
autoComplete={autoComplete}
disabled={this.props.disabled}
{...inputProps}
inputRef={this.refHandlers.input}
Expand Down

1 comment on commit 2085d1f

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[select] fix(Suggest): Default autoComplete for text input to "off" (#3724)

Previews: documentation | landing | table

Please sign in to comment.