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

Inform when portal is moved to target #311

Open
jlahtinen opened this issue Aug 27, 2020 · 4 comments
Open

Inform when portal is moved to target #311

jlahtinen opened this issue Aug 27, 2020 · 4 comments

Comments

@jlahtinen
Copy link

Is there a way to inform passenger when wormhole travel has finished and everthing is ready?

I have hard time to set focus to opened modal that uses portal. Currently it sets focus in double next ticks. Seems to work but ...

  this.$nextTick(() => {
    this.$nextTick(() => {
      this.$refs.header.focus();
    });
  });
@jlahtinen
Copy link
Author

Modal is also inside another portal if that makes any difference.

@albasyir
Copy link

albasyir commented Feb 3, 2021

maybe need callback method when target has been used ?

<potal-target @filled="someMehtod" />

you mean like that ?

@jlahtinen
Copy link
Author

Yes. Looks like that would do the trick.

@wbijker
Copy link

wbijker commented Jun 2, 2021

An event would be a much cleaner way to deal with $refs and mounted

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

3 participants