Skip to content

Commit

Permalink
Merge pull request #289 from adinardi/fix_create_commas
Browse files Browse the repository at this point in the history
Allow entering of commas when allowCreate is on but multi is off.
  • Loading branch information
JedWatson committed Jul 26, 2015
2 parents 6529dc4 + 7ae7a89 commit 982cdae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ var Select = React.createClass({
break;

case 188: // ,
if (this.props.allowCreate) {
if (this.props.allowCreate && this.props.multi) {
event.preventDefault();
event.stopPropagation();
this.selectFocusedOption();
Expand Down

0 comments on commit 982cdae

Please sign in to comment.