Open zfurtak opened 3 weeks ago
@BartoszGrajdek I agree this solution is much more clear but it leaves unwanted behaviour connected to placeholder. Look below how it looks in the example app and Expensify App. Or maybe we don't want to target this issue here?
We'll merge it after a version bump in E/App. To make sure in case of any regressions we don't have to add testing steps for this PR as well
Details
When typing text with
command + b
orcommand + i
orcommand + u
effect was applied to inputted text, which was unwanted. Also connected issue: when text was pasted to an empty filed, it was in the colour of placeholder. In these cases instead of<span>
object with text,<b>, <i>, <u>....
was being created.My proposal is to change the created object when it's not
<span>