Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomPrompt needs a callback for the onChange method #10

Open
neocybereth opened this issue May 1, 2022 · 0 comments
Open

CustomPrompt needs a callback for the onChange method #10

neocybereth opened this issue May 1, 2022 · 0 comments

Comments

@neocybereth
Copy link

I have a CustomPrompt with some images I've placed within it.

Maybe b/c they're not children of the Custom Prompt, whenever I close it the images still stick around.

The custom prompt needs an onClose function so that some arbitrary functions can run before the native this.hide() is run to close the prompt.

Currently the best I can do is CustomPrompt.background.onChange = [func here] but this is run AFTER this.hide() so there's a brief flash when the images are removed.

tyzoo added a commit to tyzoo/decentraland-ui-utils that referenced this issue Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant