Skip to content

Commit 25413b4

Browse files
Merge pull request HubSpot#51 from HubSpot/remove-focus-after-remove-value
Don't force focus in remove value
2 parents c344c15 + 2c23239 commit 25413b4

File tree

8 files changed

+3
-8
lines changed

8 files changed

+3
-8
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dist/react-select-plus.min.js",
55
"dist/react-select-plus.min.css"
66
],
7-
"version": "1.0.0-rc.1.patch3",
7+
"version": "1.0.0-rc.1.patch4",
88
"homepage": "https://github.com/HubSpot/react-select-plus",
99
"authors": [
1010
"Trevor Burnham"

dist/react-select-plus.js

-1
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,6 @@ var Select = _react2['default'].createClass({
15231523
this.setValue(valueArray.filter(function (i) {
15241524
return i !== value;
15251525
}));
1526-
this.focus();
15271526
},
15281527

15291528
clearValue: function clearValue(event) {

dist/react-select-plus.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dist/bundle.js

-1
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,6 @@ var Select = _react2['default'].createClass({
17991799
this.setValue(valueArray.filter(function (i) {
18001800
return i !== value;
18011801
}));
1802-
this.focus();
18031802
},
18041803

18051804
clearValue: function clearValue(event) {

examples/dist/standalone.js

-1
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,6 @@ var Select = _react2['default'].createClass({
15231523
this.setValue(valueArray.filter(function (i) {
15241524
return i !== value;
15251525
}));
1526-
this.focus();
15271526
},
15281527

15291528
clearValue: function clearValue(event) {

lib/Select.js

-1
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,6 @@ var Select = _react2['default'].createClass({
743743
this.setValue(valueArray.filter(function (i) {
744744
return i !== value;
745745
}));
746-
this.focus();
747746
},
748747

749748
clearValue: function clearValue(event) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-select-plus",
3-
"version": "1.0.0-rc.1.patch3",
3+
"version": "1.0.0-rc.1.patch4",
44
"description": "A Select control built with and for ReactJS",
55
"main": "lib/Select.js",
66
"style": "dist/react-select-plus.min.css",

src/Select.js

-1
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,6 @@ const Select = React.createClass({
664664
removeValue (value) {
665665
var valueArray = this.getValueArray(this.props.value);
666666
this.setValue(valueArray.filter(i => i !== value));
667-
this.focus();
668667
},
669668

670669
clearValue (event) {

0 commit comments

Comments
 (0)