One possibility is that Vue is delaying the handler a tick after the actual event. XD only holds the scenegraph open for a single tick. So things like wrapping editDocument
with a setTimeout
won’t work, because by the time the timeout happens, XD has already closed the scenegraph.
Unfortunately, I’m not familiar enough with Vue to know if that’s what’s going on here – just bringing it up as a possibility.