From 8cf36d83b6ded1b778a99d52183b7eda13c86b77 Mon Sep 17 00:00:00 2001 From: Ronnie Ren Date: Mon, 20 Nov 2017 16:31:42 +0800 Subject: [PATCH] when keyboardDismissMode ==='on-drag', we also make sure we are really on-drag state and then dismiss the keyboard. --- Libraries/Components/ScrollView/ScrollView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 74026c7e649663..ff54d3afcabf1a 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -612,7 +612,7 @@ const ScrollView = createReactClass({ } } if (Platform.OS === 'android') { - if (this.props.keyboardDismissMode === 'on-drag') { + if (this.props.keyboardDismissMode === 'on-drag' && this.state.isTouching) { dismissKeyboard(); } }