Skip to content

Commit 5aec7fb

Browse files
committed
Fixed the mWebSafari pop-up picker cannot be full screen when the keyboard is displayed
1 parent ca6488c commit 5aec7fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,12 @@ export default class RNPickerSelect extends PureComponent {
545545
onValueChange={this.onValueChange}
546546
selectedValue={selectedItem.value}
547547
{...pickerProps}
548+
onPointerUp={(event) => {
549+
Keyboard.dismiss();
550+
if (pickerProps.onPointerUp) {
551+
pickerProps.onPointerUp(event);
552+
}
553+
}}
548554
>
549555
{this.renderPickerItems()}
550556
</Picker>

0 commit comments

Comments
 (0)