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

showCountdown to be shown only when field in focus #165

Open
sherikovic opened this issue Dec 10, 2024 · 0 comments
Open

showCountdown to be shown only when field in focus #165

sherikovic opened this issue Dec 10, 2024 · 0 comments

Comments

@sherikovic
Copy link

Hey,

I think it makes sense to either make showCountdown depend whether the field is focused or export the isFocusedState.
Something similar to this would be great:

{showCountdown && maxLength && isFocusedState && (
  <Text style={countdown}>
    {maxLength - (value ? value.length : 0)} {countdownLabel}
  </Text>
)}
@sherikovic sherikovic closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2024
@sherikovic sherikovic reopened this Dec 10, 2024
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

1 participant