artflutter / reactive_forms_widgets

MIT License
127 stars 74 forks source link

reactive_pinput backspace bug on mobile #154

Open anthonycastelli opened 5 months ago

anthonycastelli commented 5 months ago

I've been using the reactive_pinput package for a while now, and recently discovered an issue on iOS and Android that the backspace key doesn't actually delete anything. I have a field that requires 6 numbers. Once I input all 6, then try to delete characters, it doesnt delete anything. The causes issues if wrong numbers were input. Are there any known work arounds for it, or is this a known issue already? I'll work on getting a sample project together to demonstrate this bug a little later today.

vasilich6107 commented 5 months ago

Hi @anthonycastelli this package just passes props through to original widget. https://pub.dev/packages/pinput

Probably this is an issue of the package

anthonycastelli commented 5 months ago

Ahh, I didn't even realize that. Let me make a test project today and see if the issue is actually coming from this wrapper (an issue with the reactive stuff) or if it indeed is an issue with the pinput component.

vasilich6107 commented 4 months ago

Hey @anthonycastelli do you have any updates?

anthonycastelli commented 4 months ago

@vasilich6107 So sorry for the delay. I completely spaced on this. I will dig back into this today and tomorrow to see if it is part of this package or the pinput package.

anthonycastelli commented 4 months ago

After digging into this more, an AutofillGroup is the culprit for things not working. Let me test it directly with the Pinput package and see if it's still an issue.

Reproduction App:

Pubspec.yaml

reactive_forms: ^17.0.1
reactive_pinput: ^3.0.1

main.dart.zip