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

CardField onBlur event never trigger (Android) #734

Closed
anthowm opened this issue Nov 25, 2021 · 0 comments · Fixed by #894
Closed

CardField onBlur event never trigger (Android) #734

anthowm opened this issue Nov 25, 2021 · 0 comments · Fixed by #894
Labels
android bug Something isn't working

Comments

@anthowm
Copy link

anthowm commented Nov 25, 2021

Describe the bug
Cardfield onBlur event never trigger on android only, focus works fine.

To Reproduce

<CardField
                ref={ref}
                postalCodeEnabled={false}
                style={styles.cardField}
                placeholder={{ number: '4990 0000 0000 0000' }}
                cardStyle={{
                  fontSize: 14,
                  placeholderColor: N500,
                  backgroundColor: Gray50,
                }}
                onCardChange={(details) => {
                  if (!touchedCard) {
                    setTouchedCard(true);
                  }
                  if (details.complete) {
                    setIsCardValid(true);
                  } else if (isCardValid && !details.complete) {
                    setIsCardValid(false);
                  }
                }}
                onFocus={changeToFocus}
                onBlur={changeToBlur}
              />

Expected behavior
A clear and concise description of what you expected to happen.
onBlur event works trigger as expected

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS] macosx
  • Browser [e.g. chrome, safari] Chrome

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] OnePlus 3T , Simulator
  • OS: [e.g. iOS8.1] 9 , 10
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22] 28, 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants