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

Native Payments Sheet Scroll View and Keyboard Error #246

Open
rlomeli158 opened this issue Jan 29, 2024 · 4 comments
Open

Native Payments Sheet Scroll View and Keyboard Error #246

rlomeli158 opened this issue Jan 29, 2024 · 4 comments

Comments

@rlomeli158
Copy link

PayPal SDK Version

Latest

Environment

Sandbox

Xcode Version

Xcode 15.2

OS Version & Device

iPhone 15 - iOS 16.4

Integration type

Swfit Package Manager

Development Processor

Intel

Describe the bug

When scrolling down on the native payments sheet, the scroll view gets messed up after the keyboard goes away. Please see my reproducing steps for more details.

To reproduce

  1. Launch Native Payments with no client ID in sandbox. This could be on the simulator or an actual device. I used the iPhone 15.
  2. Pay with Debit or Credit Card as guest
  3. Use software keyboard (iPhone keyboard instead of physical computer keyboard)
  4. Enter a few numbers in the credit card number, then click off of the form by clicking an empty space in the form. This should make your keyboard go away.
  5. Now, at the bottom of the screen you should see a bunch of white space left behind by the keyboard disappearing.
  6. You can scroll down on the white space and keep scrolling down, but you won't actual scroll down on the checkout form. You can kinda see two vertical scroll indicators here.
  7. To fix it, you have to scroll all the way up then you can scroll down with no issues.

Expected behavior

I want the keyboard to go away and for there to not be any extra white space at the bottom of the payment sheet. It should just be the other form fields. This way, if I scroll down, I can actually see the rest of the form.

Screenshots

IMG_5979

@vradopp
Copy link
Contributor

vradopp commented Feb 7, 2024

Hey @rlomeli158

Are you able to provide a video of you reproducing the issue? Also are you using any libraries for keyboard management such as IQKeyboardManager?

@rlomeli158
Copy link
Author

Sure here you go! I am not using any custom libraries.

RPReplay_Final1707340170.mov

@scannillo
Copy link
Collaborator

Hi @rlomeli158 - is this issue happening only on a simulator and not on real devices?

@rlomeli158
Copy link
Author

That video was from a real device, so it happens on both!

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

3 participants