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

refactor: clean up updateValueAndCaretPosition #813

Merged
merged 2 commits into from
Feb 25, 2024

Conversation

csantos1113
Copy link
Contributor

Describe the change

  • updateValueAndCaretPosition is used only once
  • its params setCaretPosition and caretPos were always set to something static
    • setCaretPosition: true
    • caretPos not passed, hence undefined

This PR removes these 2 params; and removes unnecessary checks

Note: not sure if these params were used for different purposes in the past, or if they are planned to used differently in the future, but they are not used as of right now, so I'm removing them.

@s-yadav
Copy link
Owner

s-yadav commented Feb 25, 2024

Yes, this method was earlier used when the value is changing from props, but that logic is changed now.
Your changes look great. Will merge. Thanks

@s-yadav s-yadav merged commit 0a2018e into s-yadav:master Feb 25, 2024
1 check passed
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