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

Keyboard opens and closes when clicking in input fields on android #130

Closed
jeffvg opened this issue Mar 1, 2022 · 3 comments
Closed

Keyboard opens and closes when clicking in input fields on android #130

jeffvg opened this issue Mar 1, 2022 · 3 comments
Assignees
Labels
brightlayer-ui Used to identify Brightlayer UI platform issues for easy filtering bug Something not working as expected user-reported This was reported by a user outside the maintainers team.
Milestone

Comments

@jeffvg
Copy link
Contributor

jeffvg commented Mar 1, 2022

Describe the bug

When clicking in any input fields, the initial click opens the keyboard and then closes. If you click in the field again it works as expected. This has been reported on the login screen as well but I was unable to reproduce it there. I'm able to reproduce on the create account, self-reg, create account.....

What is the expected behavior?

keyboard to open on initial click and remain open until edit ends

What are the steps to reproduce?

  1. Go to...create account workflow from debug
  2. accept eula
  3. click in email address field
  4. keyboard opens and closes

Screenshots or links to minimum reproduction example

android-inputs.mov

Environment

Anything else to add?

@jeffvg jeffvg added bug Something not working as expected high-priority Issues that should be fixed sooner than later needs-review Issues that we would like to revisit/review labels Mar 1, 2022
@daileytj daileytj removed the high-priority Issues that should be fixed sooner than later label Mar 1, 2022
@daileytj
Copy link
Contributor

daileytj commented Mar 1, 2022

There was a bug introduced in [email protected] that causes the keyboard to dismiss every time which can be resolved by downgrading to v3.11.0.

Still investigating the initial click dismissal issue

@joebochill joebochill added the user-reported This was reported by a user outside the maintainers team. label Mar 2, 2022
@jeffvg jeffvg removed the needs-review Issues that we would like to revisit/review label Mar 2, 2022
@ektasawant
Copy link
Contributor

Don't forget to update template https://github.com/brightlayer-ui/react-native-cli-templates/issues/57 after fixing this issue.

@ektasawant ektasawant added this to the 4.2.0 milestone Jul 6, 2022
@jeffvg jeffvg self-assigned this Aug 25, 2022
@jeffvg
Copy link
Contributor Author

jeffvg commented Aug 31, 2022

Keyboard immediately closes on Android this is still an open issue. Items called out in here that may work for some projects isn't working in ours. This has been verified in our project but not working.

Keyboard closes immediately once opened in TextInput inside a navigation stack this is a closed issue and is pretty much a repeat of whats been going on with the input fields and keyboard. Anything in this discussion that is called out as working is not working in our project.

Currently in release/4.2.0 we temporally adjusted the Android manifest xml in main to have android:windowSoftInputMode="stateAlwaysHidden|adjustPan" and the keyboard remains open after the initial select in the input fields of the debug workflows. The issue with the adjustPan doesn't allow user to scroll the screen and content is blocked. Example is the login screen. (open keyboard and try to scroll to bottom of page)
https://github.com/brightlayer-ui/react-native-workflows/pull/175

  • Items tested with no change
    all state changes with adjustResize resulted in the same behavior and the keyboard is closed once opened.
    https://developer.android.com/guide/topics/manifest/activity-element#wsoft

  • package version change tested out
    react-native-screens versions 3.4.0 through 3.11.1 was tested and didn't fix the issue with keyboard

  • also adjusted these packages with no results

image

The self reg and invite reg screens seem to be where the keyboard issue is noticed and the login screen doesn't seem to have the same issue. There are conversations on stack overflow about marginVertical causing issues related to keyboard but in the registrations flows seem to be using marginHorizontal

@daileytj daileytj closed this as completed Sep 6, 2022
@joebochill joebochill added the brightlayer-ui Used to identify Brightlayer UI platform issues for easy filtering label Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brightlayer-ui Used to identify Brightlayer UI platform issues for easy filtering bug Something not working as expected user-reported This was reported by a user outside the maintainers team.
Development

No branches or pull requests

4 participants