rsattar / CLTokenInputView

A replica of iOS's native contact bubbles UI
MIT License
504 stars 127 forks source link

When token is selected autocorrectionType is not respected. #2

Closed mergesort closed 9 years ago

mergesort commented 9 years ago

When a token is selected, the autocorrectionType on CLTokenInputView isn't respected. A few images that demonstrate that below, where you can see that the keyboard's autocorrection bar comes back once the token is selected.

unselected

selected

epocket commented 9 years ago

In case it helps anyone else, I found the fix for autocorrection type on selection... add these lines to the bottom of CLTokenView.m...

-(UITextAutocorrectionType) autocorrectionType { return UITextAutocorrectionTypeNo; }

rsattar commented 9 years ago

Hey guys! Sorry I'm so late to this. I'm a bit confused by the issue. You're saying that when a token is highlighted, it should not show any auto-correct options in the keyboard, right? If so, @epocket's suggestion fixes that issue (essentially disables auto-correct when a token is highlighted), and I'm going to add that to the code. It doesn't make sense to offer auto-correct on an already formed token anyway.

Thanks!

rsattar commented 9 years ago

Should be fixed on 1.1.0