React-select: support for disabled options

Created on 27 Apr 2015  路  3Comments  路  Source: JedWatson/react-select

Is there anyway to pass a disabled attribute to an option?

exports.US = [
    { value: 'AL', label: 'Alabama', disabled: true },
    { value: 'AK', label: 'Alaska' },

disabled-option

Most helpful comment

On the outside chance anyone's seeing this page like me and trying to get an option disabled in v2, it's now isDisabled.

All 3 comments

On the outside chance anyone's seeing this page like me and trying to get an option disabled in v2, it's now isDisabled.

Why is this not documented anywhere?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

steida picture steida  路  3Comments

pgoldweic picture pgoldweic  路  3Comments

ericj17 picture ericj17  路  3Comments

mbonaci picture mbonaci  路  3Comments

yrabinov picture yrabinov  路  3Comments