-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
❗ p4-importantPriority 4: this fixes bugs that violate documented behavior, or significantly improves perf.Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.✨ feature requestNew feature or requestNew feature or request
Description
Version
3.0.2
Reproduction link
https://codesandbox.io/s/unruffled-northcutt-cmndl?file=/public/iframe.html
Steps to reproduce
- Have an app that shows an iframe
- Create a teleport that will place it's content inside the iframe
- Add an event like click to the teleport content
- Immediately after the irame loads, try to click on the teleported element
What is expected?
The click event should fire immediatelly
What is actually happening?
The click is not working until the event.timestamp ( that is generated by the iframe dom ) gets higher than the attached timestamp from the parent window.
More info can be found here ( https://github.com/vuejs/vue-next/blob/ea5f92ae051be511558569eaf4c2afa2839c3e4d/packages/runtime-dom/src/modules/events.ts#L114 here, inside the iframe the event.timeStamp which is calculated based on the iframe timestamp is lower than the initial invoker.attached = getNow() that is calculated based on the parent frame ). Due to this, events are not firing for the time difference it takes the iframe to load
anncwb, ErickLuis00, Seanitzel, zakariamouhid, lucasforeman and 9 morebrolnickij, zolo2hin, vz9000, tungquach and Disquse
Metadata
Metadata
Assignees
Labels
❗ p4-importantPriority 4: this fixes bugs that violate documented behavior, or significantly improves perf.Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.✨ feature requestNew feature or requestNew feature or request