Expensify/react-native-live-markdown

Incorrect styling in single-line input after trying to add newline

Closed this issue · 1 comments

94c4a21 + iOS

enter.underline.mov

Update: I've narrowed the problem down to the blur event. If the attributed string ends with the underlined range, blurring the input imprints the underline style for all input. It looks like a bug in iOS, as there is no underline style to be found on attributedText, especially after parsing. We create a new instance of it every time.

I've found a workaround - applying the NSUnderlineStyleNone to the string before iterating over ranges patches this problem.

I will look into it once more tomorrow.