Details
Description
As I commented on https://jira.xwiki.org/browse/XWIKI-19300?focusedCommentId=111095&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-111095 the Live Data is currently triggering a couple of JavaScript events but it does this on the DOM element that is replaced by the Vue.js component. So there's no easy way to catch these events:
- that element is not anymore in the DOM, so the only way to get it if before the live data is loaded
- the events can't propagate up in the DOM if the element is detached
This shows that there is a serious flaw in the way the live data is loaded. We should:
- either not replace the element (i.e. make it wrap the Vue.js component)
- or trigger the events on the root element on the Vue.js component so that they can be listen to
Attachments
Issue Links
- blocks
-
XWIKI-19300 LiveData should send a javascript event when it's ready
- Closed
- relates to
-
XWIKI-19635 The JavaScript API to interact with a Live Data instance is not accessible
- Closed