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

Event handlers for <wl-dialog> don't get called #95

Open
devtud opened this issue Apr 25, 2020 · 1 comment
Open

Event handlers for <wl-dialog> don't get called #95

devtud opened this issue Apr 25, 2020 · 1 comment

Comments

@devtud
Copy link

devtud commented Apr 25, 2020

According to <wl-dialog> documentation, 2 events should be dispatched:

  • didhide and
  • didshow.

However, when I use the dialog, my event handlers for these 2 events are not called.
eg.

<wl-dialog @didhide="${handleDialogClosed}" @didshow="${handleDialogOpened}" ...>
</wl-dialog>

I've accidentally tried with @didHide and it works. No luck for @didShow.

@eskan
Copy link
Contributor

eskan commented Sep 26, 2020

Hi,
as a workaround you should use show() and hide() instead of set open to true/false. And use @didHide and @didshow.
Regards

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

2 participants