Fixes text selection in UITextInput when cursor is out of the box