-
Notifications
You must be signed in to change notification settings - Fork 328
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
caret position tracking while editing input #211
Conversation
Thank you for the pull request. |
@assisrafael no, but, I will look into it and see if I can manage this test out |
Thank you. |
Hi, could this actually be used to provide a way of having default caret just before the decimal places ? |
@juancarrey I'm currently trying to fix a minor problem and I will look into that right after I do the test case that I'm in dept with this project 🐌 |
@viict I've tested your fork but for some reason I'm getting this exception:
I've tracked the exception to this line where you're trying to access I'm running it on Android 6.0.1 > Chrome Mobile 55.0.2883.91 using the directive Any ideas? |
One possible solution is this: bendrucker/angular-credit-cards@b6c5644 |
for me that is not work |
still not working for me |
set : function caretSet(element, pos) { | ||
if (element[0].setSelectionRange) { | ||
element[0].focus(); | ||
element[0].setSelectionRange(pos,pos); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi guys!
I had this problem too, but i modify a little this PR... placing the (setTimeout function) encapsulating ==> element[0].setSelectionRange(pos,pos);
like this:
setTimeout(function () {
element[0].setSelectionRange(pos,pos);
}, 0);
this work for me... regards
This worked for me: |
Closing due to inactivity. |
Might have a better way to do this, but, I needed it in a hurry and it solves the problem for me as far as our QA have gonne so far.