Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

89
Vistas
vue-click-outside and cookiepro interaction

I have a popup menu that I want to stay open when cookie pro is interacted with. i.e don't fire the click outside while the cookie policy modal is open

<section v-click-outside="close">
// popup in here
</section>

Mounted:

mounted() {
    this.popupItem = this.$el
  },

Method:

close() {
  const isCookieProActive = window?.OneTrust?.IsAlertBoxClosed()
  if (!isCookieProActive) {
    this.isVisible = true
    return
  }
  this.isVisible = false
},

Is there a way to stop the click outside while the alert box is open?

7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos