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

Still able to input characters even maxlength was reached #289

Closed
kengerz opened this issue Jul 24, 2014 · 4 comments
Closed

Still able to input characters even maxlength was reached #289

kengerz opened this issue Jul 24, 2014 · 4 comments

Comments

@kengerz
Copy link

kengerz commented Jul 24, 2014

When I set maxLength: 10, I was still able to input characters when the cursor was not in the end of the input text.

When I move the cursor in the beginning or any part of the input text (except the end), the keys that i'm selecting just overwrite the existing characters. Somehow it's like the function when you click Insert in a real keyboard.

Appreciate your help with this. Thanks!

@Mottie
Copy link
Owner

Mottie commented Jul 24, 2014

Hi @kengerz!

It was intentionally set up that way so that characters could be inserted in the middle of the value.

What is it you expect/want to happen?

@kengerz
Copy link
Author

kengerz commented Jul 25, 2014

Hi @Mottie, what i was expecting is that when the max length was reached, the user should not be able to insert characters anymore. Is there a way that I can achieve this? Thanks.

@Mottie
Copy link
Owner

Mottie commented Nov 20, 2014

A maxInsert option is included in 1.19.0.

// allow inserting characters @ caret when maxLength is set
maxInsert : true,

Thanks for your patience!

@kengerz
Copy link
Author

kengerz commented Nov 24, 2014

@Mottie Got it! Thank you very much!

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

No branches or pull requests

2 participants