React-autosuggest: Props to disable autosuggest field

Created on 4 Aug 2017  路  3Comments  路  Source: moroshko/react-autosuggest

Feature Request

Have autosuggest take in a disabled prop (boolean) to disable the autosuggest field. This is useful for situations maybe when the field is pending other parts of the form to be completed or maybe just disabled for certain users.

Most helpful comment

I can confirm that it's possible to pass the inputProps.disabled which achieves the result.

All 3 comments

Isn't this already supported?

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

I can confirm that it's possible to pass the inputProps.disabled which achieves the result.

hmh, it doesn't seem to be documented thought 馃

Was this page helpful?
0 / 5 - 0 ratings