stevengharris/MarkupEditor

Paste option sometimes does not show up properly.

Opened this issue · 3 comments

Simulator Screenshot - iPhone 14 Pro Max - 2023-08-22 at 16 57 46

There are quite a few moments where the paste option is not showing up. I am not sure if it's only paste option or it is for the first option in the context menu shown.

Do you have any suggestions on how to reproduce this, even if it's inconsistent?

What I noticed was to continuously try to repeat the tap on the where the carat will be (or the line that the carat is at). This is significantly more consistent on a simulator, not sure if that makes a difference in the fix.

Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2023-09-05.at.11.22.40.mp4

@JohnKuan In debugging some other paste issues, it seems like the pasteboard is sometimes not being populated when copying from within the MarkupEditor. Do you think this is what you are observing? I think if the pasteboard is empty on iOS, then the paste option won't show up. I can see this in Mac Catalyst as the paste menu item being disabled.