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

VxTextfield error on clear #84

Closed
chrislaurie-io opened this issue Apr 14, 2021 · 2 comments
Closed

VxTextfield error on clear #84

chrislaurie-io opened this issue Apr 14, 2021 · 2 comments
Labels
duplicate This issue or pull request already exists Fixed for next release

Comments

@chrislaurie-io
Copy link

Describe the bug
When I press the clear icon (the x on the right)

To Reproduce
Steps to reproduce the behavior:
1.Create a VxTextField
2. Enter a value
3. Click on the x

Expected behavior
It should just clear

Smartphone (please complete the following information):

  • Device: Pixie 3 emulator
  • OS: Android
  • Null safe

Additional context
A runtime error is thrown inside the decodeEnvelope of the JSONMethodCodec class in the flutter/dart system. The clear does happen correctly afterwards.

E/MethodChannel#flutter/textinput( 5883): Failed to handle method call
E/MethodChannel#flutter/textinput( 5883): java.lang.IndexOutOfBoundsException: invalid selection start: 12
E/MethodChannel#flutter/textinput( 5883): at io.flutter.embedding.engine.systemchannels.TextInputChannel$TextEditState.(TextInputChannel.java:724)
E/MethodChannel#flutter/textinput( 5883): at io.flutter.embedding.engine.systemchannels.TextInputChannel$TextEditState.fromJson(TextInputChannel.java:680)
E/MethodChannel#flutter/textinput( 5883): at io.flutter.embedding.engine.systemchannels.TextInputChannel$1.onMethodCall(TextInputChannel.java:91)
E/MethodChannel#flutter/textinput( 5883): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#flutter/textinput( 5883): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#flutter/textinput( 5883): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
E/MethodChannel#flutter/textinput( 5883): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#flutter/textinput( 5883): at android.os.MessageQueue.next(MessageQueue.java:326)
E/MethodChannel#flutter/textinput( 5883): at android.os.Looper.loop(Looper.java:160)
E/MethodChannel#flutter/textinput( 5883): at android.app.ActivityThread.main(ActivityThread.java:6669)
E/MethodChannel#flutter/textinput( 5883): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter/textinput( 5883): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/MethodChannel#flutter/textinput( 5883): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

@iampawan
Copy link
Owner

Fix the issue #81 #82

@iampawan iampawan added duplicate This issue or pull request already exists Fixed for next release labels Apr 14, 2021
@iampawan
Copy link
Owner

Fixed in v3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists Fixed for next release
Projects
None yet
Development

No branches or pull requests

2 participants