Skip to content

Commit

Permalink
[fixed] Multiselect not handling disabled items correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Jan 12, 2016
1 parent 4018170 commit 5b17d73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/components/demos/MultiSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ module.exports = React.createClass({
<label className='form-label'>Disable Multiselect Values</label>
<RW.Multiselect
value={ Array.isArray(this.state.disabled) ? this.state.disabled : [] }
data={allVals}
data={list}
textField='name'
valueField='id'
disabled={this.state.disabled === true}
Expand Down
4 changes: 2 additions & 2 deletions src/Multiselect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ var Multiselect = React.createClass({
<List ref="list"
key={0}
{...listProps}
readOnly={!!readOnly}
disabled={!!disabled}
readOnly={readOnly}
disabled={disabled}
id={listID}
aria-live='polite'
aria-labelledby={instanceId(this)}
Expand Down

0 comments on commit 5b17d73

Please sign in to comment.