Skip to content

Commit

Permalink
Merge pull request #51 from HubSpot/remove-focus-after-remove-value
Browse files Browse the repository at this point in the history
Don't force focus in remove value
  • Loading branch information
TrevorBurnham authored Jan 11, 2017
2 parents c344c15 + 2c23239 commit 25413b4
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dist/react-select-plus.min.js",
"dist/react-select-plus.min.css"
],
"version": "1.0.0-rc.1.patch3",
"version": "1.0.0-rc.1.patch4",
"homepage": "https://github.com/HubSpot/react-select-plus",
"authors": [
"Trevor Burnham"
Expand Down
1 change: 0 additions & 1 deletion dist/react-select-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,6 @@ var Select = _react2['default'].createClass({
this.setValue(valueArray.filter(function (i) {
return i !== value;
}));
this.focus();
},

clearValue: function clearValue(event) {
Expand Down
2 changes: 1 addition & 1 deletion dist/react-select-plus.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion examples/dist/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,6 @@ var Select = _react2['default'].createClass({
this.setValue(valueArray.filter(function (i) {
return i !== value;
}));
this.focus();
},

clearValue: function clearValue(event) {
Expand Down
1 change: 0 additions & 1 deletion examples/dist/standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,6 @@ var Select = _react2['default'].createClass({
this.setValue(valueArray.filter(function (i) {
return i !== value;
}));
this.focus();
},

clearValue: function clearValue(event) {
Expand Down
1 change: 0 additions & 1 deletion lib/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,6 @@ var Select = _react2['default'].createClass({
this.setValue(valueArray.filter(function (i) {
return i !== value;
}));
this.focus();
},

clearValue: function clearValue(event) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-select-plus",
"version": "1.0.0-rc.1.patch3",
"version": "1.0.0-rc.1.patch4",
"description": "A Select control built with and for ReactJS",
"main": "lib/Select.js",
"style": "dist/react-select-plus.min.css",
Expand Down
1 change: 0 additions & 1 deletion src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,6 @@ const Select = React.createClass({
removeValue (value) {
var valueArray = this.getValueArray(this.props.value);
this.setValue(valueArray.filter(i => i !== value));
this.focus();
},

clearValue (event) {
Expand Down

0 comments on commit 25413b4

Please sign in to comment.