Skip to content

Commit 2920b4a

Browse files
committed
removed onBlur from select input
1 parent 9849049 commit 2920b4a

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

dist/ReactstrapSelectInput.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
var _this = this;
2-
31
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
42

53
import * as React from 'react';
64
import { FormGroup, Input, Label } from "reactstrap";
75

8-
var handleBlur = function handleBlur(event) {
9-
if (_this.ignoreNextBlur === true) {
6+
/*let handleBlur = event => {
7+
if (this.ignoreNextBlur === true) {
108
// The parent components are relying on the bubbling of the event.
119
event.stopPropagation();
12-
_this.ignoreNextBlur = false;
13-
event.target.name = _this.props.name;
10+
this.ignoreNextBlur = false;
11+
event.target.name = this.props.name;
1412
return;
1513
}
16-
};
14+
};*/
1715

1816
var ReactstrapSelectInput = function ReactstrapSelectInput(_ref) {
1917
var field = _ref.field,
@@ -38,7 +36,7 @@ var ReactstrapSelectInput = function ReactstrapSelectInput(_ref) {
3836
React.createElement(
3937
Input,
4038
Object.assign({}, field, props, { type: "select", invalid: Boolean(touched[field.name] && errors[field.name]),
41-
onBlur: handleBlur(), placeholder: "Test" }),
39+
placeholder: "Test" }),
4240
React.createElement(
4341
"option",
4442
{ value: "" },

0 commit comments

Comments
 (0)