Skip to content

fix: android blur method#447

Merged
Naturalclar merged 2 commits intoreact-native-picker:masterfrom
slopez93:fix-android-blur
Oct 10, 2022
Merged

fix: android blur method#447
Naturalclar merged 2 commits intoreact-native-picker:masterfrom
slopez93:fix-android-blur

Conversation

@slopez93
Copy link
Contributor

@slopez93 slopez93 commented Oct 3, 2022

React native version: 0.70.1

When open the picker calling pickerRef.current?.focus(); it works fine but when you want to close the modal and call on pickerRef.current?.blur(); it don't work on android.

I have override native currentFocus method to implement our own blur logic.

Copy link
Contributor

@Naturalclar Naturalclar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thanks for the change!

@Naturalclar Naturalclar changed the title Fix android blur method fix: android blur method Oct 10, 2022
@Naturalclar Naturalclar merged commit cea9766 into react-native-picker:master Oct 10, 2022
github-actions bot pushed a commit that referenced this pull request Oct 10, 2022
## [2.4.7](v2.4.6...v2.4.7) (2022-10-10)

### Bug Fixes

* android blur method ([#447](#447)) ([cea9766](cea9766))
@Naturalclar
Copy link
Contributor

🎉 This PR is included in version 2.4.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants