Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picker is focused by default #62

Open
x632 opened this issue Apr 16, 2024 · 1 comment
Open

Picker is focused by default #62

x632 opened this issue Apr 16, 2024 · 1 comment

Comments

@x632
Copy link

x632 commented Apr 16, 2024

Is your feature request related to a problem? Please describe.
Maybe I am doing something wrong but the picker is always focused as soon as the composable is called. Hence also the keyboard is opened by default.

Describe the solution you'd like
Could this be fixed with an "isFocused" parameter, maybe? So that the keyboard does not open until you tap on the picker?

Describe alternatives you've considered

Additional context

@AmeerElbaz
Copy link

AmeerElbaz commented Jun 20, 2024

I faced the same issue, After checking I think this is because the TogiCountryCodePicker is internally using autoFill Modifier, which attracts focus to the field.
I have forked the library and removed autoFill, will add a parameter for it later.
It should be taken into consideration that not everyone needs autoFocus.

Anyway, thanks for the owner for all the effort!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants