diff --git a/apple/MarkdownTextFieldObserver.mm b/apple/MarkdownTextFieldObserver.mm index 6bf0fb0f..dff905b4 100644 --- a/apple/MarkdownTextFieldObserver.mm +++ b/apple/MarkdownTextFieldObserver.mm @@ -41,7 +41,12 @@ - (void)textFieldDidChange:(__unused UITextField *)textField { _active = NO; // prevent recursion _textField.attributedText = attributedText; _active = YES; + + // Restore cursor position [_textField setSelectedTextRange:textRange notifyDelegate:NO]; + + // Eliminate underline blinks while typing if previous text ends with a link + _textField.typingAttributes = _textField.defaultTextAttributes; } - (void)textFieldDidEndEditing:(__unused UITextField *)textField