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

Autofocused TextField in TabView Mode causes RangeError in Exchange Rate Screen #73

Open
rajput-hemant opened this issue Jul 4, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@rajput-hemant
Copy link
Owner

rajput-hemant commented Jul 4, 2023

I encountered an issue with the app's TabView mode where, upon switching to the Exchange Rate screen, the autofocus feature of the TextField throws a RangeError if the TextField is not manually focused. The error message displayed is as follows:

RangeError (end): Invalid value: Not in inclusive range 0..1: -1.

Steps to Reproduce:

When TabView is enabled:

  • Launch the app and navigate to the Settings screen.
  • Ensure that the TabView is turned on (it is turned on by default).
  • Go to the Exchange Rate screen.
  • Start inputting data into the TextField.
  • Observe that the input is not registered until the TextField is manually focused.

When TabView is disabled:

  • Launch the app and navigate to the Settings screen.
  • Turn off the TabView feature.
  • Go to the Exchange Rate screen.
  • Start inputting data into the TextField.
  • Observe that the input is registered immediately without requiring manual focus.

Expected Behavior:

When in TabView Mode, the autofocused TextField in the Exchange Rate screen should accept input without requiring manual focus.

Please let me know if any further information is needed to investigate and resolve this issue. Thank you!

@rajput-hemant rajput-hemant added bug Something isn't working help wanted Extra attention is needed documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Jul 4, 2023
@rajput-hemant rajput-hemant pinned this issue Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant