Skip to content

Commit e8ddeff

Browse files
committed
prod
1 parent 2835086 commit e8ddeff

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

dist/react-bootstrap-table.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3060,6 +3060,8 @@ return /******/ (function(modules) { // webpackBootstrap
30603060
if (result !== _Const2.default.AWAIT_BEFORE_CELL_EDIT) {
30613061
this.setState({ currEditCell: null });
30623062
}
3063+
} else {
3064+
this.setState({ currEditCell: null });
30633065
}
30643066
}
30653067
}, {
@@ -3871,6 +3873,7 @@ return /******/ (function(modules) { // webpackBootstrap
38713873
row = _this$props.row,
38723874
className = _this$props.className;
38733875

3876+
_this.focusInEditor = _this.focusInEditor.bind(_this);
38743877
_this.state = {
38753878
shakeEditor: false,
38763879
className: typeof className === 'function' ? className(fieldValue, row) : className
@@ -3940,7 +3943,6 @@ return /******/ (function(modules) { // webpackBootstrap
39403943
var ts = this;
39413944
var valid = true;
39423945
if (ts.props.editable.validator) {
3943-
var input = ts.refs.inputRef;
39443946
var checkVal = ts.props.editable.validator(value, this.props.row);
39453947
var responseType = typeof checkVal === 'undefined' ? 'undefined' : _typeof(checkVal);
39463948
if (responseType !== 'object' && checkVal !== true) {
@@ -3962,7 +3964,7 @@ return /******/ (function(modules) { // webpackBootstrap
39623964
ts.timeouteClear = setTimeout(function () {
39633965
ts.setState({ shakeEditor: false });
39643966
}, 300);
3965-
input.focus();
3967+
this.focusInEditor();
39663968
return valid;
39673969
}
39683970
}
@@ -4004,7 +4006,7 @@ return /******/ (function(modules) { // webpackBootstrap
40044006
}, {
40054007
key: 'componentDidMount',
40064008
value: function componentDidMount() {
4007-
this.refs.inputRef.focus();
4009+
this.focusInEditor();
40084010
var dom = _reactDom2.default.findDOMNode(this);
40094011
if (this.props.isFocus) {
40104012
dom.focus();
@@ -4027,6 +4029,13 @@ return /******/ (function(modules) { // webpackBootstrap
40274029
value: function componentWillUnmount() {
40284030
this.clearTimeout();
40294031
}
4032+
}, {
4033+
key: 'focusInEditor',
4034+
value: function focusInEditor() {
4035+
if (typeof this.refs.inputRef.focus === 'function') {
4036+
this.refs.inputRef.focus();
4037+
}
4038+
}
40304039
}, {
40314040
key: '__handleClick__REACT_HOT_LOADER__',
40324041
value: function __handleClick__REACT_HOT_LOADER__(e) {

dist/react-bootstrap-table.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)