#beeeeeeeeeeee2
1 messages ยท Page 1 of 1 (latest)
hi, let me see quickly if I can replicate that.
thanks so much ๐
so I have this running but to be honest I'm not sure how to trigger onBlur to happen, just clicking aroun other parts of my component doesn't trigger it on either iOS/Android target
Do you have anything wrapping around the screen or the cardfield? in my case, clicking outside of the element causes it to lose focus however the onblur isn't being triggered
ah I just added a random TextField so I can click into that
but the loss of focus is clear as the cursor in the cardfield disappears
so anyway yes I can replicate that
ah so does it just not work on this version? should i upgrade
well I am using 0.33.0 in my app, which is the latest
so it's just a bug, I'd suggest opening an issue on Github and I'll also mention it internally
does it trigger on android for you?
yes
I guess I could a ticket yeah. this worked on 0.23.0 for me but I can't downgrade because the google pay button has a really big border radius
but yes I'll open a ticket then and maybe solve it in the mean time by keeping track of the keyboard opening/closing
is there a good way to get the ref.focused for this particular element, do you know maybe?
not sure if it's what you mean but onFocus recieves an argument with the name of the part of the CardField that was focussed
onFocus={focusedField => {
console.log('focusField', focusedField);
}}
I saw that but I would just need to know that the whole field actually just isn't focused anymore
then you need onBlur I'd say, so we need to fix whatever causes it to not fire on iOS
alright ๐ i'll open a ticket then