jump-sdk / jetpack_compose_country_code_picker_emoji

Jetpack Compose Country Code Picker with Emoji Flags
https://jitpack.io/#jump-sdk/jetpack_compose_country_code_picker_emoji
Apache License 2.0
45 stars 13 forks source link

Picker is focused by default #62

Open x632 opened 2 months ago

x632 commented 2 months ago

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 commented 1 week ago

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!