We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to use svelte-popperjs like this.
<script> import { createPopperActions } from 'svelte-popperjs'; const [popperRef, popperContent] = createPopperActions({ placement: 'bottom-start', }); const popperOptions = { modifiers: [ { name: 'offset', options: { offset: [0, 8] } } ], }; let showTooltip = false; </script> <button use:popperRef on:mouseenter={() => showTooltip = true} on:mouseleave={() => showTooltip = false} > My button </button> {#if showTooltip} <div id="tooltip" use:popperContent={popperOptions}> My tooltip <div id="arrow" data-popper-arrow /> </div> {/if}
But the options I got is just { modifiers: [ { name: 'offset', options: { offset: [0, 8] } } ], } With out { placement: 'bottom-start', }
{ modifiers: [ { name: 'offset', options: { offset: [0, 8] } } ], }
{ placement: 'bottom-start', }
I think it will better to combine this two options together.
The text was updated successfully, but these errors were encountered:
@koory1st This should be fixed in the latest release v1.2.2.
Let me know if you’re facing any further issues.
Sorry, something went wrong.
bryanmylee
Successfully merging a pull request may close this issue.
I want to use svelte-popperjs like this.
But the options I got is just
{ modifiers: [ { name: 'offset', options: { offset: [0, 8] } } ], }
With out
{ placement: 'bottom-start', }
I think it will better to combine this two options together.
The text was updated successfully, but these errors were encountered: