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

The event is not expose when dispatch invoke from exported method of component #27

Closed
alexprey opened this issue Aug 19, 2020 · 1 comment
Labels
bug Something isn't working Svelte V3 Issue related to Svelte V3 components

Comments

@alexprey
Copy link
Collaborator

If there is something like:

function dismiss() {
  visible = false;
  dispatch('dismiss', {
    visible,
  });
}

The event dismiss is properly shown in the doc, but if the function is exported:

export function dismiss() {
  visible = false;
  dispatch('dismiss', {
    visible,
  });
}

The event dismiss is not shown at all.

Originally posted by @TheComputerM in #1 (comment)

@alexprey alexprey added bug Something isn't working Svelte V3 Issue related to Svelte V3 components labels Aug 19, 2020
@alexprey
Copy link
Collaborator Author

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Svelte V3 Issue related to Svelte V3 components
Projects
None yet
Development

No branches or pull requests

1 participant