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

Focus input with tab and prefix seted have diferent behavior #170

Open
jhonattan471 opened this issue Feb 4, 2022 · 0 comments
Open

Focus input with tab and prefix seted have diferent behavior #170

jhonattan471 opened this issue Feb 4, 2022 · 0 comments

Comments

@jhonattan471
Copy link

jhonattan471 commented Feb 4, 2022

When I don't have a prefix, and focus the input with tab, all the value is selected.

I need this same behavior when prefix is seted.

Reading the files, and doing some debugging, i findout that on focus with tab this function is called by keyUp event :

fixCursorPosition(forceToEndPosition)

I need that when enter this function with tab, (forceToEndPosition === undefined), dont enter this condition

else if (currentCursorPosition < this.getRawValueWithoutPrefixStartPosition()) {
            this.inputManager.setCursorAt(this.getRawValueWithoutPrefixStartPosition());
}

How can I do that ? I never did a change to a lib before,
Do you can make it or I need to copy this lib and use 'locally' ?

@jhonattan471 jhonattan471 changed the title Focus with prefix have diferent behavior Focus input with tab and prefix seted have diferent behavior Feb 4, 2022
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

No branches or pull requests

1 participant