Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
v-show shifts Popper.js tooltip to the corners

For my website/component I am using vuejs, Nuxt and typescypt. My component stands for - generic popover component for displaying things like filters and menus in an element over the page

I have problem 'v-show' directive shifts tooltip of Popper.js to corners. Without v-show all is working fine, but I need it to hide popover element until user click on button what opens popover.

Question: How to make tooltip placement correct?

Here picture if padding is set to 'left'

Popper.js placement is left

<template>
  <div v-click-outside="togglePopover">
    <span ref="popcorn">
      <slot name="action" :toggle="toggle" :close="close" />
    </span>
      <div ref="tooltip" role="tooltip" v-show="isOpen">
        <div :class="[ci-popover, `ci-popover--background-color-${variant}`,`ci-popover--padding-${padding}`]">
            <slot name="default" />  
        </div>
      </div>
  </div>
</template> 

parent component

<ci-popover variant="emphasis"
                padding="xs"
                placement="left">
      <template #action="popover">
        <ci-button @click="popover.toggle()">
          Open Popover
        </ci-button>
      </template>
      <!-- Popover content -->
      <template #default>
        <p>some content 1</p>
        <p>some content 2</p>
        <p>some content 3</p>
      </template>

</ci-popover>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!