Skip to content

Fix text selection on LimitMaxLengthFormatter #291

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

martinpelli
Copy link
Contributor

This PR fixes an issue where, if the cursor is placed at the end of the text and the input is then trimmed (due to limit max formatter), the cursor ends up in an invalid position — beyond the new text length.

Checklist

  • I have bumped the version in pubspec.yaml
  • I have added an entry in changelog.md for the new pubspec version
  • (if applicable) I have added "Closes #1234" to this termplate to automatically close related issues.
  • (not required if no sensible change has been made eg: Localization) I have added tests that prove my fix is effective or that my feature works.

@cedvdb
Copy link
Owner

cedvdb commented May 31, 2025

Can you check that the backspace behavior continues to work (removes chars) and that it works in RTL text direction too ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants