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

MindRave picture MindRave  路  3Comments

MalcolmDwyer picture MalcolmDwyer  路  3Comments

mjuopperi picture mjuopperi  路  3Comments

Meesam picture Meesam  路  3Comments

yrabinov picture yrabinov  路  3Comments