Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add autoComplete off #846

Open
pankaj-tm opened this issue Mar 24, 2022 · 1 comment
Open

How to add autoComplete off #846

pankaj-tm opened this issue Mar 24, 2022 · 1 comment

Comments

@pankaj-tm
Copy link

Are you reporting a bug?

  • Please create a Codepen that demonstrates your issue. You can start from the Basic example.

  • Provide the steps to reproduce the issue, e.g.:

    1. Focus on the input field
    2. Type c, and wait for suggestions to appear
    3. Press Escape

    Observed behaviour: Suggestions stay open

    Expected behaviour: Suggestions should be closed

Are you making a feature request?

  • Please describe your use case from user journey point of view, e.g.:

    In my application, when user highlights suggestions (using the mouse or keyboard), I'd like to display additional information about the highlighted suggestion alongside the Autosuggest.

  • If you have ideas how to extend the Autosuggest API to support your new feature, please share!

  • If you know any examples online that already implement such functionality, please share a link.

@lb-
Copy link

lb- commented Dec 13, 2022

Pretty sure you can just pass autoComplete to the inputProps.

<Autosuggest inputProps={{ autoComplete: 'donotsuggest' }} ...otherProps />

https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants