Skip to content

Feat/enable editing in middle #213

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: master
Choose a base branch
from

Conversation

AHED200
Copy link

@AHED200 AHED200 commented Aug 1, 2025

This pull request introduces two new features to the Pinput widget: the ability to enable editing in the middle of a PIN and an option to call the onCompleted callback only when the input field loses focus. Additionally, it includes corresponding updates to the widget's properties, behavior, and test cases.

New Features:

  • Enable Editing in the Middle of a PIN:

    • Added the enableEditingInMiddle property to allow users to tap on individual PIN positions to edit from that position. [1] [2] [3]
    • Updated _PinItem to handle taps and cursor positioning based on enableEditingInMiddle. [1] [2]
  • Call onCompleted Only on Unfocus:

    • Introduced the callOnCompletedOnlyOnUnfocus property to control whether the onCompleted callback is triggered immediately upon PIN completion or only when the field loses focus. [1] [2] [3]

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.

1 participant