Skip to content

Commit 327bd42

Browse files
authored
bug fix: crash on closing modal that contain SmartScrollView
1 parent abfe494 commit 327bd42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SmartScrollView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class SmartScrollView extends Component {
122122
const num = ReactNative.findNodeHandle(this._smartScroll);
123123
const strippedBackRef = ref.slice('input_'.length);
124124

125-
setTimeout(() => {
125+
this[ref] && setTimeout(() => {
126126
onRefFocus(strippedBackRef);
127127
this.setState({focusedField: strippedBackRef})
128128
this[ref].measureLayout(num, (X,Y,W,H) => {

0 commit comments

Comments
 (0)