dialog.connect function loses its parent [not relevant]
I have two pages and one dialog in my application. First page uses pageStac.push to open 2nd page. Both pages uses the dialog, which is pushed also to pageStack from MenuItem - onClicked.
On the first page, in the dialog.connect function() if i do console.log(parent)
, i get a valid parent, same as from onClicked.
On the second page, in the dialog.connect function() if i do console.log(parent)
, i get "undefine", altough onClicked shows a valid parent.
Is this a bug somewhere?
As a workaround, in the 2nd page MenuItem-onClicked, i call function which is not inside the MenuItem. If i push to dialog from this function, everything works fine.
(askbot code render failed, so see here for Code snip )
The same code for page 1 and 2.
EDIT: add diagram; The green functions work, orange does not work.