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 is not dispatched when component closes #218

Open
nsjoo opened this issue Jul 14, 2021 · 0 comments
Open

Event is not dispatched when component closes #218

nsjoo opened this issue Jul 14, 2021 · 0 comments

Comments

@nsjoo
Copy link

nsjoo commented Jul 14, 2021

Hello,
I tried to use the 'close' event of a component that exists in the document.
image

But @close doesn't seem to work.
Only @destroy is called when the close tab button is clicked.

Below is the code I tried.
(As in the example of @resize, it was the same problem even if I tried it as a separate function.)

<gl-component
          v-for="(stacks, idx) in stackLists"
          :key="stacks"
          @close="() => console.log('CLOSED')"
          @resize="onPaneResized(idx)"
        >
    <div>Hi</div>
</gl-component>
...

Thanks!

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