GeekyAnts / GeekyAnts/NativeBase

Input to search through Select options loses focus on every keystroke

Open
#5,610 9 comments 0 reactions 0 assignees View on GitHub
bug triage v3
Dominant language
TypeScript
Stars
20.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

### Description

After opening the Select and startin to type in the Input field to filter the options, the keyboard gets dismissed and the field loses focus

### CodeSandbox/Snack link

https://snack.expo.dev/@alessandro_capra/af3ece

### Steps to reproduce

- Open the provided Snack link
- Open the country Select input
- Try to type in the search field

**Expect**
- iOS: kinda working, but flickering in the background
- Android: not working, the Input loses focus and the keyboard is dismissed

### NativeBase Version

3.4.13

### Platform

- [X] Android
- [ ] CRA
- [X] Expo
- [X] iOS
- [ ] Next

### Other Platform

_No response_

### Additional Information

I believe it's related to the ActionSheet focusing automatically on its first element every time the component rerenders?
I tried using an uncontrolled Input but without any luck, any suggestion?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.