issue with PopUpManager.createPopUp
- Dominant language
- ActionScript
- Stars
- 380
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
hi,
I have a code which use **PopUpManager.createPopUp** and it works well on Flex. I must turn it into Apache Royale.
On my index.mxml i have:
```
// Call the method
```
**popupChangePass** is another mxml with a form that should be displayed in the popup.
It compiles but it produces an error on the browser console:
```
Cannot read property 'parent' of null
```
the console.log("change pass 2") is not displayed so the **createPopUp** fail. The Flex version works so I guess the scope of **this** is different. And if i console **this**, it has no parent.
I'm not 100% sure because if **this** is the cause because the js code is obfuscated.
Did someone else used createPopUp before and face this problem before?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the changePass() method in index.mxml and reproduce the browser-console error at PopUpManager.createPopUp(this, popupChangePass, true). Inspect the createPopUp entry point and popupChangePass usage to determine why the parent is null; done means the popup is created, the following console log appears, and the form displays.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100