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

Provide access to update method #86

Open
SassNinja opened this issue Mar 6, 2023 · 1 comment
Open

Provide access to update method #86

SassNinja opened this issue Mar 6, 2023 · 1 comment

Comments

@SassNinja
Copy link

I'm toggling the popper content on click which results in a misaligned arrow because the new text's length is different.

What I'm missing is access to the underlying popper instance or rather its update method

I could imagine it's provided via the scoped slot:

<Popper>
  <template #content="{ update }">
    <button @click="() => toggleContent() && update()">content</button>
  </template>
</Popper>

Would it be ok to extend this plugin accordingly? Or is there another way to update the popper instance which I'm overseeing?

@LukePa
Copy link

LukePa commented Jun 13, 2023

I tried to solve this issue slightly differently with this PR (https://github.com/LukePa/vue3-popper-expose-update) by exposing the update method.

Either solution would be great and really increase the possible use cases for the library

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