Replies: 2 comments
-
|
I encountered the same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
The solution is to use FocusNode to programmatically manage focus and move it to the next widget after the CardField is completed. Steps: final nextFieldFocusNode = FocusNode();Assign the FocusNode to the first TextField. TextField(focusNode: nextFieldFocusNode),Use the onCardChanged callback of the CardField to check if the card is complete (complete is true). If it is, use the FocusNode to shift focus. CardField(
onCardChanged: (card) {
if (card != null && card.complete == true) {
nextFieldFocusNode.requestFocus();
}
},
// ... other CardField props
),
This ensures that when the card input is finished, the focus is explicitly moved to the next input field, bypassing the internal focus trapping issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
User is unable to tab from card input field to the next input text field to set the focus. Cursor is on the last section of the card field and does not move to the next input field.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
User is able to successfully tab through all fields
Smartphone / tablet
Additional context
Google Chrome Version 124.0.6367.60 (Official Build) (x86_64)
Beta Was this translation helpful? Give feedback.
All reactions