react-autosuggest icon indicating copy to clipboard operation
react-autosuggest copied to clipboard

Cannot read property 'trim' of undefined

Open swalihvmbazar opened this issue 4 years ago • 1 comments

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.

swalihvmbazar avatar Feb 26 '21 10:02 swalihvmbazar

const inputProps = {
    placeholder: 'Type a programming language',
    value: language,
    onChange: onChange
  };

don't forget to add value as key for input value

Mfdsix avatar Mar 05 '21 08:03 Mfdsix