Siyfion/angular-typeahead

Cursor position issues with Chrome on Android

Closed this issue · 5 comments

When using this plugin with Chrome on Android, the cursor position gets screwed up and jumbles what I'm typing. If I type "we", it comes out "ew". If I have "abcdef" and I hit backspace twice, I get abcd and the cursor at the front of the textbox.

Removing the call to setCursorPosition fixes the problem and doesn't cause any noticeable issues, at least on Chrome (Android and Desktop), FireFox, or IE 11, 10, & 9.

I was hoping you could explain the necessity of this method? Is it for legacy IE support?

It was added as a counter to #26, however, due to the way the model value is now being updated, I don't believe this is still an issue... @skakri I've taken it back out of the master branch and left it untagged for the time being, can you check to see if the issue has come back?

@DFearing Can you check that your issue is no longer occurring? (Use the live demo link on the main page)

@DFearing I'm still waiting on you to check that this solves your issue, before I create a release.

@Siyfion, from my testing on the live demo link, it is resolved. I haven't had a chance yet to test with your new code in my actual environment. Sorry.

Okay, that's good enough for me.